diff options
author | komuhangi <51232461+jahielkomu@users.noreply.github.com> | 2024-04-10 10:50:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 07:50:01 +0000 |
commit | 89a48205197a059c05f1ec6f07c14d82fb94d16b (patch) | |
tree | 47dcc5005d8199171aaf4fbed5138bdd1961fc21 /components/script/dom/rtcicecandidate.rs | |
parent | 245269c64942f88bdd26d5962adc5440f2751aa3 (diff) | |
download | servo-89a48205197a059c05f1ec6f07c14d82fb94d16b.tar.gz servo-89a48205197a059c05f1ec6f07c14d82fb94d16b.zip |
Fixed some clippy warnings in components (#32025)
* Fixed some clippy warnings in components
* Updated the simplification of bolean expressions in componets/script/dom/range.rs
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(), |