diff options
Diffstat (limited to 'src/js_errors.rs')
-rw-r--r-- | src/js_errors.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js_errors.rs b/src/js_errors.rs index 905dcefbd..b16a6dc35 100644 --- a/src/js_errors.rs +++ b/src/js_errors.rs @@ -184,7 +184,7 @@ impl StackFrame { fn apply_source_map( &self, mappings_map: &mut CachedMaps, - getter: &SourceMapGetter, + getter: &dyn SourceMapGetter, ) -> StackFrame { let maybe_sm = get_mappings(self.script_name.as_ref(), mappings_map, getter); @@ -319,7 +319,7 @@ impl JSError { }) } - pub fn apply_source_map(&self, getter: &SourceMapGetter) -> Self { + pub fn apply_source_map(&self, getter: &dyn SourceMapGetter) -> Self { let mut mappings_map: CachedMaps = HashMap::new(); let mut frames = Vec::<StackFrame>::new(); for frame in &self.frames { @@ -344,7 +344,7 @@ impl JSError { fn parse_map_string( script_name: &str, - getter: &SourceMapGetter, + getter: &dyn SourceMapGetter, ) -> Option<SourceMap> { match script_name { // The bundle does not get built for 'cargo check', so we don't embed the @@ -365,7 +365,7 @@ fn parse_map_string( fn get_mappings<'a>( script_name: &str, mappings_map: &'a mut CachedMaps, - getter: &SourceMapGetter, + getter: &dyn SourceMapGetter, ) -> &'a Option<SourceMap> { mappings_map .entry(script_name.to_string()) |