mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)
This commit is contained in:
parent
87e7e3d429
commit
c38c964f1b
38 changed files with 118 additions and 109 deletions
|
@ -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),
|
||||
_ => {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue