aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcicecandidate.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/rtcicecandidate.rs
parent95e69fe4ffce23708608855720961741344bee07 (diff)
downloadservo-9b26dca141159ddc75266de9ef5a54f537450921.tar.gz
servo-9b26dca141159ddc75266de9ef5a54f537450921.zip
Fixed the .clone() warnings. (#31819)
Diffstat (limited to 'components/script/dom/rtcicecandidate.rs')
-rw-r--r--components/script/dom/rtcicecandidate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/rtcicecandidate.rs b/components/script/dom/rtcicecandidate.rs
index d39b853f36c..de49a539c1a 100644
--- a/components/script/dom/rtcicecandidate.rs
+++ b/components/script/dom/rtcicecandidate.rs
@@ -112,7 +112,7 @@ impl RTCIceCandidateMethods for RTCIceCandidate {
/// <https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-sdpmlineindex>
fn GetSdpMLineIndex(&self) -> Option<u16> {
- self.sdp_m_line_index.clone()
+ self.sdp_m_line_index
}
/// <https://w3c.github.io/webrtc-pc/#dom-rtcicecandidate-usernamefragment>
@@ -125,7 +125,7 @@ impl RTCIceCandidateMethods for RTCIceCandidate {
RTCIceCandidateInit {
candidate: self.candidate.clone(),
sdpMid: self.sdp_m_id.clone(),
- sdpMLineIndex: self.sdp_m_line_index.clone(),
+ sdpMLineIndex: self.sdp_m_line_index,
usernameFragment: self.username_fragment.clone(),
}
}