mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Cleanup some unneeded let bindings
This commit is contained in:
parent
9fea6d2e46
commit
dfc90db1d7
4 changed files with 12 additions and 21 deletions
|
@ -2150,9 +2150,7 @@ impl NodeMethods for Node {
|
|||
let element = node.downcast::<Element>().unwrap();
|
||||
let other_element = other.downcast::<Element>().unwrap();
|
||||
assert!(element.attrs().len() == other_element.attrs().len());
|
||||
// FIXME(https://github.com/rust-lang/rust/issues/23338)
|
||||
let attrs = element.attrs();
|
||||
attrs.iter().all(|attr| {
|
||||
element.attrs().iter().all(|attr| {
|
||||
other_element.attrs().iter().any(|other_attr| {
|
||||
(*attr.namespace() == *other_attr.namespace()) &&
|
||||
(attr.local_name() == other_attr.local_name()) &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue