diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-20 09:07:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 08:07:22 +0000 |
commit | 02a0cdd6faf80b77c6b066120bc2927c963affe3 (patch) | |
tree | abb409671c554c5c4d9678788388d51f6341688d /components/script/dom/rtcpeerconnection.rs | |
parent | 0cf2caba06a78fe3695c46b468422e975f0bd187 (diff) | |
download | servo-02a0cdd6faf80b77c6b066120bc2927c963affe3.tar.gz servo-02a0cdd6faf80b77c6b066120bc2927c963affe3.zip |
clippy: Fix dereferenced warnings (#31770)
Diffstat (limited to 'components/script/dom/rtcpeerconnection.rs')
-rw-r--r-- | components/script/dom/rtcpeerconnection.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/rtcpeerconnection.rs b/components/script/dom/rtcpeerconnection.rs index 9f8060b27ba..543dee6992a 100644 --- a/components/script/dom/rtcpeerconnection.rs +++ b/components/script/dom/rtcpeerconnection.rs @@ -307,7 +307,7 @@ impl RTCPeerConnection { DataChannelEvent::NewChannel => { let channel = RTCDataChannel::new( &self.global(), - &self, + self, USVString::from("".to_owned()), &RTCDataChannelInit::empty(), Some(channel_id), @@ -357,7 +357,7 @@ impl RTCPeerConnection { } pub fn unregister_data_channel(&self, id: &DataChannelId) { - self.data_channels.borrow_mut().remove(&id); + self.data_channels.borrow_mut().remove(id); } /// <https://www.w3.org/TR/webrtc/#update-ice-gathering-state> @@ -648,7 +648,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection { let this = this.root(); let desc = desc.into(); let desc = RTCSessionDescription::Constructor( - &this.global().as_window(), + this.global().as_window(), None, &desc, ).unwrap(); @@ -688,7 +688,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection { let this = this.root(); let desc = desc.into(); let desc = RTCSessionDescription::Constructor( - &this.global().as_window(), + this.global().as_window(), None, &desc, ).unwrap(); @@ -764,7 +764,7 @@ impl RTCPeerConnectionMethods for RTCPeerConnection { label: USVString, init: &RTCDataChannelInit, ) -> DomRoot<RTCDataChannel> { - RTCDataChannel::new(&self.global(), &self, label, init, None) + RTCDataChannel::new(&self.global(), self, label, init, None) } /// <https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtransceiver> |