diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-08 20:34:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-08 20:34:31 +0100 |
commit | cdba5ab6fc633606aaa6f95d0825832c3ac6fe5c (patch) | |
tree | e8dee2801e14b65b2da6aca62e39cd3d3ac2a786 /cli/import_map.rs | |
parent | 619a24390ff15d5ea5e577a4d0391823f94e8592 (diff) |
refactor: rename ThreadSafeState, use RefCell for mutable state (#3931)
* rename ThreadSafeState to State
* State stores InnerState wrapped in Rc and RefCell
Diffstat (limited to 'cli/import_map.rs')
-rw-r--r-- | cli/import_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String, Vec<ModuleSpecifier>>; type ScopesMap = IndexMap<String, SpecifierMap>; -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct ImportMap { base_url: String, imports: SpecifierMap, |