mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix option_as_ref_deref warnings (#31936)
This commit is contained in:
parent
c3b6d40f90
commit
a8976ff00a
7 changed files with 17 additions and 31 deletions
|
@ -791,7 +791,7 @@ impl HTMLFormElement {
|
|||
Some(submitter.target())
|
||||
} else {
|
||||
let form_owner = submitter.form_owner();
|
||||
let form = form_owner.as_ref().map(|form| &**form).unwrap_or(self);
|
||||
let form = form_owner.as_deref().unwrap_or(self);
|
||||
get_element_target(form.upcast::<Element>())
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue