summaryrefslogtreecommitdiff
path: root/src/js_errors.rs
diff options
context:
space:
mode:
authorAndy Hayden <andyhayden1@gmail.com>2019-01-13 22:30:38 -0800
committerBert Belder <bertbelder@gmail.com>2019-01-14 22:30:04 +0100
commit526fdac053f125b641b07b78b81ffa9962622e09 (patch)
treeec884949a6b43c109a4509de21f6f6a10d15ef38 /src/js_errors.rs
parent7d08db2191526524bf9a7a45b97952c533a6aa74 (diff)
Update to rust 2018 edition
Diffstat (limited to 'src/js_errors.rs')
-rw-r--r--src/js_errors.rs8
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())