clippy: Fix needless_borrow warnings in components/script (#31928)

This commit is contained in:
Azhar Ismagulova 2024-03-29 08:58:22 +00:00 committed by GitHub
parent 2d5a1cd02e
commit c4739675d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 32 additions and 32 deletions

View file

@ -2483,7 +2483,7 @@ impl VirtualMethods for HTMLInputElement {
}
fn bind_to_tree(&self, context: &BindContext) {
if let Some(ref s) = self.super_type() {
if let Some(s) = self.super_type() {
s.bind_to_tree(context);
}
self.upcast::<Element>()
@ -2620,7 +2620,7 @@ impl VirtualMethods for HTMLInputElement {
maybe_doc: Option<&Document>,
clone_children: CloneChildrenFlag,
) {
if let Some(ref s) = self.super_type() {
if let Some(s) = self.super_type() {
s.cloning_steps(copy, maybe_doc, clone_children);
}
let elem = copy.downcast::<HTMLInputElement>().unwrap();