aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/messagechannel.rs
diff options
context:
space:
mode:
authorAarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com>2024-03-22 11:11:17 +0530
committerGitHub <noreply@github.com>2024-03-22 05:41:17 +0000
commit9b26dca141159ddc75266de9ef5a54f537450921 (patch)
treec6ad0681bfbf5a15f4916ec45827a2a52be19ade /components/script/dom/messagechannel.rs
parent95e69fe4ffce23708608855720961741344bee07 (diff)
downloadservo-9b26dca141159ddc75266de9ef5a54f537450921.tar.gz
servo-9b26dca141159ddc75266de9ef5a54f537450921.zip
Fixed the .clone() warnings. (#31819)
Diffstat (limited to 'components/script/dom/messagechannel.rs')
-rw-r--r--components/script/dom/messagechannel.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/messagechannel.rs b/components/script/dom/messagechannel.rs
index 41550cb4a7d..315110b8d27 100644
--- a/components/script/dom/messagechannel.rs
+++ b/components/script/dom/messagechannel.rs
@@ -40,10 +40,7 @@ impl MessageChannel {
incumbent.track_message_port(&*port2, None);
// Step 3
- incumbent.entangle_ports(
- port1.message_port_id().clone(),
- port2.message_port_id().clone(),
- );
+ incumbent.entangle_ports(*port1.message_port_id(), *port2.message_port_id());
// Steps 4-6
reflect_dom_object_with_proto(