mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +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
|
@ -206,7 +206,7 @@ impl Attr {
|
|||
(Some(old), None) => {
|
||||
// Already gone from the list of attributes of old owner.
|
||||
assert!(
|
||||
old.get_attribute(&ns, &self.identifier.local_name)
|
||||
old.get_attribute(ns, &self.identifier.local_name)
|
||||
.as_deref() !=
|
||||
Some(self)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue