mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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>
This commit is contained in:
parent
4bca55e27a
commit
3ac0ab2e4e
6 changed files with 24 additions and 26 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue