mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue