mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fixed the .clone() warnings. (#31819)
This commit is contained in:
parent
95e69fe4ff
commit
9b26dca141
28 changed files with 76 additions and 93 deletions
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue