From cdba5ab6fc633606aaa6f95d0825832c3ac6fe5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 8 Feb 2020 20:34:31 +0100 Subject: refactor: rename ThreadSafeState, use RefCell for mutable state (#3931) * rename ThreadSafeState to State * State stores InnerState wrapped in Rc and RefCell --- cli/import_map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/import_map.rs') diff --git a/cli/import_map.rs b/cli/import_map.rs index 1a9207288..f9c50345d 100644 --- a/cli/import_map.rs +++ b/cli/import_map.rs @@ -38,7 +38,7 @@ const SUPPORTED_FETCH_SCHEMES: [&str; 3] = ["http", "https", "file"]; type SpecifierMap = IndexMap>; type ScopesMap = IndexMap; -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct ImportMap { base_url: String, imports: SpecifierMap, -- cgit v1.2.3