summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
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,