mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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
This commit is contained in:
parent
03b752289e
commit
37cf4cf207
4 changed files with 6 additions and 5 deletions
|
@ -563,13 +563,13 @@ pub unsafe fn cross_origin_set(
|
|||
|
||||
unsafe fn get_getter_object(d: &PropertyDescriptor, out: RawMutableHandleObject) {
|
||||
if d.hasGetter_() {
|
||||
out.set(std::mem::transmute(d.getter_));
|
||||
out.set(d.getter_);
|
||||
}
|
||||
}
|
||||
|
||||
unsafe fn get_setter_object(d: &PropertyDescriptor, out: RawMutableHandleObject) {
|
||||
if d.hasSetter_() {
|
||||
out.set(std::mem::transmute(d.setter_));
|
||||
out.set(d.setter_);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue