diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-07-31 13:34:01 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-07-31 13:34:01 +0200 |
commit | c38c964f1b1d2614f50863be0b896e1700b5fea8 (patch) | |
tree | cb22eaf3b552b3fac4bd06b70e42fbf3d30e369c /components/script/dom/attr.rs | |
parent | 87e7e3d429f2122ffa9ef016ba5659a3b21be91b (diff) | |
download | servo-c38c964f1b1d2614f50863be0b896e1700b5fea8.tar.gz servo-c38c964f1b1d2614f50863be0b896e1700b5fea8.zip |
Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)
Diffstat (limited to 'components/script/dom/attr.rs')
-rw-r--r-- | components/script/dom/attr.rs | 8 |
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), _ => {}, |