aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/refcounted.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-01-25 18:06:33 -0600
committerGitHub <noreply@github.com>2018-01-25 18:06:33 -0600
commitc9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b (patch)
treeb6b5d9e1539d294fdbba5fec5a545d8aa6552443 /components/script/dom/bindings/refcounted.rs
parentfc3b1789318afc8f10e160d40b592234fbdb5cf4 (diff)
parent31631cdc47618a1591b6520eab8c82b28ac13bee (diff)
downloadservo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.tar.gz
servo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.zip
Auto merge of #19868 - CYBAI:specific-assertion, r=emilio
Use specific assertions Similar to #19865 r? jdm Note: Should I squash all the commits into one commit? --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it should not break anything <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19868) <!-- Reviewable:end -->
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) => {