mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix option_map_or_none warnings (#31983)
This commit is contained in:
parent
66878fb834
commit
b228d7869d
2 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,7 @@ impl HTMLSelectElementMethods for HTMLSelectElement {
|
|||
fn NamedItem(&self, name: DOMString) -> Option<DomRoot<HTMLOptionElement>> {
|
||||
self.Options()
|
||||
.NamedGetter(name)
|
||||
.map_or(None, DomRoot::downcast::<HTMLOptionElement>)
|
||||
.and_then(DomRoot::downcast::<HTMLOptionElement>)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-select-remove
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue