aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/refcounted.rs
diff options
context:
space:
mode:
authorCYBAI <cyb.ai.815@gmail.com>2018-01-25 23:49:17 +0800
committerCYBAI <cyb.ai.815@gmail.com>2018-01-26 01:18:55 +0800
commit9ee27d62aedaa59cf14c362cca5b62cb7e291ccc (patch)
treee01b0270dbc477f7361801f687d7b03d10f75867 /components/script/dom/bindings/refcounted.rs
parent1c31370a0853af93e6572e9f8e177e2e5c2f2d07 (diff)
downloadservo-9ee27d62aedaa59cf14c362cca5b62cb7e291ccc.tar.gz
servo-9ee27d62aedaa59cf14c362cca5b62cb7e291ccc.zip
Use specific assertion for DOM binding refcounted
Diffstat (limited to 'components/script/dom/bindings/refcounted.rs')
-rw-r--r--components/script/dom/bindings/refcounted.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/refcounted.rs b/components/script/dom/bindings/refcounted.rs
index b189298c30e..2c5a179ca2b 100644
--- a/components/script/dom/bindings/refcounted.rs
+++ b/components/script/dom/bindings/refcounted.rs
@@ -98,7 +98,7 @@ impl TrustedPromise {
LIVE_REFERENCES.with(|ref r| {
let r = r.borrow();
let live_references = r.as_ref().unwrap();
- assert!(self.owner_thread == (&*live_references) as *const _ as *const libc::c_void);
+ assert_eq!(self.owner_thread, (&*live_references) as *const _ as *const libc::c_void);
// Borrow-check error requires the redundant `let promise = ...; promise` here.
let promise = match live_references.promise_table.borrow_mut().entry(self.dom_object) {
Occupied(mut entry) => {