mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix a variety of warnings in components/script/dom (#31894)
This commit is contained in:
parent
4a68243f65
commit
b0196ad373
10 changed files with 45 additions and 43 deletions
|
@ -169,12 +169,14 @@ unsafe extern "C" fn read_transfer_callback(
|
|||
let sc_holder = &mut *(closure as *mut StructuredDataHolder);
|
||||
let in_realm_proof = AlreadyInRealm::assert_for_cx(SafeJSContext::from_ptr(cx));
|
||||
let owner = GlobalScope::from_context(cx, InRealm::Already(&in_realm_proof));
|
||||
if let Ok(_) = <MessagePort as Transferable>::transfer_receive(
|
||||
if <MessagePort as Transferable>::transfer_receive(
|
||||
&owner,
|
||||
sc_holder,
|
||||
extra_data,
|
||||
return_object,
|
||||
) {
|
||||
)
|
||||
.is_ok()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue