aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r--components/script/dom/attr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs
index c50ccae3e8e..0f6a0b6c96a 100644
--- a/components/script/dom/attr.rs
+++ b/components/script/dom/attr.rs
@@ -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);