aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/buffer_source.rs
diff options
context:
space:
mode:
authorAzhar Ismagulova <31756707+azharcodeit@users.noreply.github.com>2024-04-03 18:19:53 +0100
committerGitHub <noreply@github.com>2024-04-03 17:19:53 +0000
commit37cf4cf207426f9c3b13feb617a14a6c25164894 (patch)
tree1e1138d3db83ea85ea21969410c7f18860a09764 /components/script/dom/bindings/buffer_source.rs
parent03b752289ee2edaa886e3113d55ba0fd9d7ced76 (diff)
downloadservo-37cf4cf207426f9c3b13feb617a14a6c25164894.tar.gz
servo-37cf4cf207426f9c3b13feb617a14a6c25164894.zip
clippy: Fix several warnings in `components/script/dom/bindings` (#31945)
* clippy: fix several warnings in components/script/dom/bindings * fix: allow non_canonical_clone_impl in components/script/dom/bindings * chore: removed unnecessary curly braces * fix: removed vtable_address_comparisons allow
Diffstat (limited to 'components/script/dom/bindings/buffer_source.rs')
-rw-r--r--components/script/dom/bindings/buffer_source.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/buffer_source.rs b/components/script/dom/bindings/buffer_source.rs
index 5dc6cc43dab..d9f269afaec 100644
--- a/components/script/dom/bindings/buffer_source.rs
+++ b/components/script/dom/bindings/buffer_source.rs
@@ -418,7 +418,7 @@ where
/// without causing conflicts , unexpected behavior.
/// <https://github.com/servo/mozjs/blob/main/mozjs-sys/mozjs/js/public/ArrayBuffer.h#L89>
unsafe extern "C" fn free_func(_contents: *mut c_void, free_user_data: *mut c_void) {
- let _ = Arc::from_raw(free_user_data as _);
+ let _ = Arc::from_raw(free_user_data as *const _);
}
unsafe {