summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-01-15 01:10:12 -0500
committerGitHub <noreply@github.com>2022-01-15 07:10:12 +0100
commitad224f53c798e8417a63d98daeaf3cadc199666c (patch)
treef323be53d4f5b4289cd04296af1d35028dc23b15 /core
parent903cb48fe94bbbb0c43f17cf51e84a5583ddb728 (diff)
chore: upgrade to rust 1.58 (#13377)
Diffstat (limited to 'core')
-rw-r--r--core/error.rs1
-rw-r--r--core/module_specifier.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/core/error.rs b/core/error.rs
index a462d3341..106845f04 100644
--- a/core/error.rs
+++ b/core/error.rs
@@ -372,6 +372,7 @@ impl ErrWithV8Handle {
}
}
+#[allow(clippy::non_send_fields_in_send_ty)]
unsafe impl Send for ErrWithV8Handle {}
unsafe impl Sync for ErrWithV8Handle {}
diff --git a/core/module_specifier.rs b/core/module_specifier.rs
index 581249f9e..d09c4afb5 100644
--- a/core/module_specifier.rs
+++ b/core/module_specifier.rs
@@ -43,7 +43,7 @@ impl fmt::Display for ModuleResolutionError {
specifier,
match maybe_referrer {
Some(referrer) => format!(" from \"{}\"", referrer),
- None => format!(""),
+ None => String::new(),
}
),
}