aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-21 18:48:54 +0100
committerGitHub <noreply@github.com>2024-03-21 17:48:54 +0000
commit3e63f8d6ee0dbd7934a0cb05753820676b89c61d (patch)
tree4c8a4918ba1c320fe42c8fec4d2ebc21f82e7463 /components/script/dom/htmlelement.rs
parent694e86ecffb882f6d5934eb620257e9fceddbca8 (diff)
downloadservo-3e63f8d6ee0dbd7934a0cb05753820676b89c61d.tar.gz
servo-3e63f8d6ee0dbd7934a0cb05753820676b89c61d.zip
clippy: Fix needless borrow warnings (#31813)
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index 42f3a575d4d..8a199ec9b4d 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -492,7 +492,7 @@ impl HTMLElementMethods for HTMLElement {
}
let br = HTMLBRElement::new(local_name!("br"), None, &document, None);
- fragment.upcast::<Node>().AppendChild(&br.upcast()).unwrap();
+ fragment.upcast::<Node>().AppendChild(br.upcast()).unwrap();
},
_ => {
text.push(ch);
@@ -550,7 +550,7 @@ fn append_text_node_to_fragment(document: &Document, fragment: &DocumentFragment
let text = Text::new(DOMString::from(text), document);
fragment
.upcast::<Node>()
- .AppendChild(&text.upcast())
+ .AppendChild(text.upcast())
.unwrap();
}
@@ -691,7 +691,7 @@ impl HTMLElement {
.iter()
.filter_map(|attr| {
let raw_name = attr.local_name();
- to_camel_case(&raw_name)
+ to_camel_case(raw_name)
})
.collect()
}