summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMathias Lafeldt <mathias.lafeldt@gmail.com>2022-08-21 19:31:14 +0200
committerGitHub <noreply@github.com>2022-08-21 19:31:14 +0200
commite96933bc163fd81a276cbc169b17f76724a5ac33 (patch)
tree9baab891a4035c4a03b490bb81ade8b42c426d9a /core
parentfb2aeb79a113e576ff2cc4f1bf3fc30741969508 (diff)
chore: use Rust 1.63.0 (#15464)
Diffstat (limited to 'core')
-rw-r--r--core/async_cancel.rs2
-rw-r--r--core/inspector.rs1
-rw-r--r--core/modules.rs2
-rw-r--r--core/ops_builtin_v8.rs1
4 files changed, 4 insertions, 2 deletions
diff --git a/core/async_cancel.rs b/core/async_cancel.rs
index 55ab8f4d1..11b07e189 100644
--- a/core/async_cancel.rs
+++ b/core/async_cancel.rs
@@ -219,7 +219,7 @@ mod internal {
// Do a cancellation check _before_ polling the inner future. If it has
// already been canceled the inner future will not be polled.
let node = match &*registration {
- Registration::WillRegister { head_node } => &*head_node,
+ Registration::WillRegister { head_node } => head_node,
Registration::Registered { node } => node,
};
if node.is_canceled() {
diff --git a/core/inspector.rs b/core/inspector.rs
index bec22d257..6a254b76c 100644
--- a/core/inspector.rs
+++ b/core/inspector.rs
@@ -438,6 +438,7 @@ struct InspectorWakerInner {
isolate_handle: v8::IsolateHandle,
}
+// SAFETY: unsafe trait must have unsafe implementation
unsafe impl Send for InspectorWakerInner {}
struct InspectorWaker(Mutex<InspectorWakerInner>);
diff --git a/core/modules.rs b/core/modules.rs
index c4fa53b51..545ad54d8 100644
--- a/core/modules.rs
+++ b/core/modules.rs
@@ -1346,7 +1346,7 @@ import "/a.js";
Err(..) => return Err(MockError::ResolveErr.into()),
};
- if mock_source_code(&output_specifier.to_string()).is_some() {
+ if mock_source_code(output_specifier.as_ref()).is_some() {
Ok(output_specifier)
} else {
Err(MockError::ResolveErr.into())
diff --git a/core/ops_builtin_v8.rs b/core/ops_builtin_v8.rs
index b828f908d..fe6a38bb4 100644
--- a/core/ops_builtin_v8.rs
+++ b/core/ops_builtin_v8.rs
@@ -673,6 +673,7 @@ fn op_set_wasm_streaming_callback(
Ok(())
}
+#[allow(clippy::let_and_return)]
#[op(v8)]
fn op_abort_wasm_streaming(
scope: &mut v8::HandleScope,