diff options
Diffstat (limited to 'components/script/dom/rtcicecandidate.rs')
-rw-r--r-- | components/script/dom/rtcicecandidate.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/rtcicecandidate.rs b/components/script/dom/rtcicecandidate.rs index de49a539c1a..9bb9efd7fea 100644 --- a/components/script/dom/rtcicecandidate.rs +++ b/components/script/dom/rtcicecandidate.rs @@ -84,9 +84,9 @@ impl RTCIceCandidate { config: &RTCIceCandidateInit, ) -> Fallible<DomRoot<RTCIceCandidate>> { if config.sdpMid.is_none() && config.sdpMLineIndex.is_none() { - return Err(Error::Type(format!( - "one of sdpMid and sdpMLineIndex must be set" - ))); + return Err(Error::Type( + "one of sdpMid and sdpMLineIndex must be set".to_string(), + )); } Ok(RTCIceCandidate::new_with_proto( &window.global(), |