aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/weakref.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings/weakref.rs')
-rw-r--r--components/script_bindings/weakref.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script_bindings/weakref.rs b/components/script_bindings/weakref.rs
index 9288ef5e589..38f4f709997 100644
--- a/components/script_bindings/weakref.rs
+++ b/components/script_bindings/weakref.rs
@@ -16,14 +16,14 @@ use std::ops::Drop;
use std::{mem, ptr};
use js::glue::JS_GetReservedSlot;
-use js::jsapi::{JSTracer, JS_SetReservedSlot};
+use js::jsapi::{JS_SetReservedSlot, JSTracer};
use js::jsval::{PrivateValue, UndefinedValue};
use libc::c_void;
use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
+use crate::JSTraceable;
use crate::reflector::DomObject;
use crate::root::DomRoot;
-use crate::JSTraceable;
/// The index of the slot wherein a pointer to the weak holder cell is
/// stored for weak-referenceable bindings. We use slot 1 for holding it,
@@ -70,8 +70,7 @@ pub trait WeakReferenceable: DomObject + Sized {
let new_count = box_.count.get() + 1;
trace!(
"Incrementing WeakBox refcount for {:p} to {}.",
- self,
- new_count
+ self, new_count
);
box_.count.set(new_count);
WeakRef {