From 526fdac053f125b641b07b78b81ffa9962622e09 Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Sun, 13 Jan 2019 22:30:38 -0800 Subject: Update to rust 2018 edition --- src/js_errors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/js_errors.rs') 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::::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 { 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 { mappings_map .entry(script_name.to_string()) -- cgit v1.2.3