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.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/components/script/dom/attr.rs b/components/script/dom/attr.rs
index 269627bf870..886f62718e9 100644
--- a/components/script/dom/attr.rs
+++ b/components/script/dom/attr.rs
@@ -194,7 +194,7 @@ impl Attr {
ScriptThread::enqueue_callback_reaction(owner, reaction, None);
}
- assert_eq!(Some(owner), self.owner().deref());
+ assert_eq!(Some(owner), self.owner().as_deref());
owner.will_mutate_attr(self);
self.swap_value(&mut value);
if self.identifier.namespace == ns!() {
@@ -227,7 +227,11 @@ impl Attr {
match (self.owner(), owner) {
(Some(old), None) => {
// Already gone from the list of attributes of old owner.
- assert!(old.get_attribute(&ns, &self.identifier.local_name).deref() != Some(self))
+ assert!(
+ old.get_attribute(&ns, &self.identifier.local_name)
+ .as_deref() !=
+ Some(self)
+ )
},
(Some(old), Some(new)) => assert_eq!(&*old, new),
_ => {},