mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
clippy: Fix unneeded return statement warnings (#31776)
This commit is contained in:
parent
d63615354c
commit
15bf32a4e6
19 changed files with 31 additions and 38 deletions
|
@ -524,7 +524,7 @@ impl HTMLInputElement {
|
|||
return Some(min);
|
||||
}
|
||||
}
|
||||
return self.default_minimum();
|
||||
self.default_minimum()
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage#concept-input-max
|
||||
|
@ -538,7 +538,7 @@ impl HTMLInputElement {
|
|||
return Some(max);
|
||||
}
|
||||
}
|
||||
return self.default_maximum();
|
||||
self.default_maximum()
|
||||
}
|
||||
|
||||
// when allowed_value_step and minumum both exist, this is the smallest
|
||||
|
@ -2789,7 +2789,7 @@ impl Activatable for HTMLInputElement {
|
|||
},
|
||||
_ => (),
|
||||
}
|
||||
return None;
|
||||
None
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#eventtarget-legacy-canceled-activation-behavior
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue