mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Use specific assertion for DOM attr
This commit is contained in:
parent
968976aba7
commit
34babb6dcf
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ impl Attr {
|
|||
ScriptThread::enqueue_callback_reaction(owner, reaction, None);
|
||||
}
|
||||
|
||||
assert!(Some(owner) == self.owner().r());
|
||||
assert_eq!(Some(owner), self.owner().r());
|
||||
owner.will_mutate_attr(self);
|
||||
self.swap_value(&mut value);
|
||||
if self.identifier.namespace == ns!() {
|
||||
|
@ -230,7 +230,7 @@ impl Attr {
|
|||
// Already gone from the list of attributes of old owner.
|
||||
assert!(old.get_attribute(&ns, &self.identifier.local_name).r() != Some(self))
|
||||
}
|
||||
(Some(old), Some(new)) => assert!(&*old == new),
|
||||
(Some(old), Some(new)) => assert_eq!(&*old, new),
|
||||
_ => {},
|
||||
}
|
||||
self.owner.set(owner);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue