mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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
This commit is contained in:
parent
245269c649
commit
89a4820519
6 changed files with 15 additions and 18 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue