diff options
author | Rosemary Ajayi <okhuomonajayi54@gmail.com> | 2024-03-18 10:05:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 10:05:18 +0000 |
commit | 3ac0ab2e4e711a3097d50c699f3572091fa03fd2 (patch) | |
tree | feee6ed79728bc2a2b7ddb3505d7a27e9f0f782d /components/script/dom/location.rs | |
parent | 4bca55e27ad38685067986c8f478bae1b214b43c (diff) | |
download | servo-3ac0ab2e4e711a3097d50c699f3572091fa03fd2.tar.gz servo-3ac0ab2e4e711a3097d50c699f3572091fa03fd2.zip |
clippy: Fix some warnings in the `script` crate (#31719)
* Fix InlineFormatting error
* BoxFrament
* fix clippy error
* clippy:fix clipy errors
* fix clippy errors
* fix clippy errors
* fix clippy errors
* Remove changes to `layout_2020`
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/location.rs')
-rw-r--r-- | components/script/dom/location.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/location.rs b/components/script/dom/location.rs index d84f2115288..2d123fcc95b 100644 --- a/components/script/dom/location.rs +++ b/components/script/dom/location.rs @@ -464,7 +464,7 @@ impl LocationMethods for Location { None => &value.0, }; - if let Err(_) = copy_url.as_mut_url().set_scheme(scheme) { + if copy_url.as_mut_url().set_scheme(scheme).is_err() { // Step 5: If possibleFailure is failure, then throw a "SyntaxError" DOMException. return Err(Error::Syntax); } |