diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/module_loader.rs | 4 | ||||
-rw-r--r-- | cli/standalone/mod.rs | 2 | ||||
-rw-r--r-- | cli/worker.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs index 4b120796b..84ced345f 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -443,8 +443,8 @@ impl ModuleLoaderFactory for CliModuleLoaderFactory { ) } - fn create_source_map_getter(&self) -> Option<Box<dyn SourceMapGetter>> { - Some(Box::new(CliSourceMapGetter { + fn create_source_map_getter(&self) -> Option<Rc<dyn SourceMapGetter>> { + Some(Rc::new(CliSourceMapGetter { shared: self.shared.clone(), })) } diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index 4049d6709..e25b61c31 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -280,7 +280,7 @@ impl ModuleLoaderFactory for StandaloneModuleLoaderFactory { fn create_source_map_getter( &self, - ) -> Option<Box<dyn deno_core::SourceMapGetter>> { + ) -> Option<Rc<dyn deno_core::SourceMapGetter>> { None } } diff --git a/cli/worker.rs b/cli/worker.rs index e5a750597..e897c1a86 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -73,7 +73,7 @@ pub trait ModuleLoaderFactory: Send + Sync { dynamic_permissions: PermissionsContainer, ) -> Rc<dyn ModuleLoader>; - fn create_source_map_getter(&self) -> Option<Box<dyn SourceMapGetter>>; + fn create_source_map_getter(&self) -> Option<Rc<dyn SourceMapGetter>>; } // todo(dsherret): this is temporary and we should remove this |