mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix manual_map warnings (#31922)
This commit is contained in:
parent
5d518ca8dc
commit
7349ce5b6a
8 changed files with 34 additions and 51 deletions
|
@ -1184,10 +1184,7 @@ impl HTMLInputElementMethods for HTMLInputElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-input-files
|
||||
fn GetFiles(&self) -> Option<DomRoot<FileList>> {
|
||||
match self.filelist.get() {
|
||||
Some(ref fl) => Some(fl.clone()),
|
||||
None => None,
|
||||
}
|
||||
self.filelist.get().as_ref().map(|fl| fl.clone())
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-input-defaultchecked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue