diff options
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); } |