mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
fix many clippy warnings (#33510)
Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
4e4b137eaa
commit
f986160ed4
13 changed files with 29 additions and 34 deletions
|
@ -656,9 +656,7 @@ impl LinkProcessingOptions {
|
|||
assert!(!self.href.is_empty());
|
||||
|
||||
// Step 2. If options's destination is null, then return null.
|
||||
let Some(destination) = self.destination else {
|
||||
return None;
|
||||
};
|
||||
let destination = self.destination?;
|
||||
|
||||
// Step 3. Let url be the result of encoding-parsing a URL given options's href, relative to options's base URL.
|
||||
// TODO: The spec passes a base url which is incompatible with the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue