aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcdatachannel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/rtcdatachannel.rs')
-rw-r--r--components/script/dom/rtcdatachannel.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/rtcdatachannel.rs b/components/script/dom/rtcdatachannel.rs
index 0126e144021..c6b9943364f 100644
--- a/components/script/dom/rtcdatachannel.rs
+++ b/components/script/dom/rtcdatachannel.rs
@@ -75,7 +75,7 @@ impl RTCDataChannel {
let channel = RTCDataChannel {
eventtarget: EventTarget::new_inherited(),
servo_media_id,
- peer_connection: Dom::from_ref(&peer_connection),
+ peer_connection: Dom::from_ref(peer_connection),
label,
ordered: options.ordered,
max_packet_life_time: options.maxPacketLifeTime,