mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fixed the .clone() warnings. (#31819)
This commit is contained in:
parent
95e69fe4ff
commit
9b26dca141
28 changed files with 76 additions and 93 deletions
|
@ -1000,7 +1000,7 @@ impl TestBindingMethods for TestBinding {
|
|||
resolve.map(SimpleHandler::new),
|
||||
reject.map(SimpleHandler::new),
|
||||
);
|
||||
let p = Promise::new_in_current_realm(comp.clone());
|
||||
let p = Promise::new_in_current_realm(comp);
|
||||
p.append_native_handler(&handler, comp);
|
||||
return p;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue