mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add lint check for &DomRoot<T>
`&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
This commit is contained in:
parent
bac9903fbe
commit
cd9195056c
9 changed files with 13 additions and 13 deletions
|
@ -199,7 +199,7 @@ impl Transferable for MessagePort {
|
|||
|
||||
/// https://html.spec.whatwg.org/multipage/#message-ports:transfer-receiving-steps
|
||||
fn transfer_receive(
|
||||
owner: &DomRoot<GlobalScope>,
|
||||
owner: &GlobalScope,
|
||||
sc_holder: &mut StructuredDataHolder,
|
||||
extra_data: u64,
|
||||
return_object: MutableHandleObject,
|
||||
|
@ -249,7 +249,7 @@ impl Transferable for MessagePort {
|
|||
};
|
||||
|
||||
let transferred_port =
|
||||
MessagePort::new_transferred(&**owner, id.clone(), port_impl.entangled_port_id());
|
||||
MessagePort::new_transferred(&*owner, id.clone(), port_impl.entangled_port_id());
|
||||
owner.track_message_port(&transferred_port, Some(port_impl));
|
||||
|
||||
return_object.set(transferred_port.reflector().rootable().get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue