aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/mem.rs
diff options
context:
space:
mode:
authorchansuke <chansuke@georepublic.de>2018-09-18 23:24:15 +0900
committerJosh Matthews <josh@joshmatthews.net>2018-09-19 17:40:47 -0400
commitc37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch)
tree1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/mem.rs
parent2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff)
downloadservo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz
servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip
Format script component
Diffstat (limited to 'components/script/mem.rs')
-rw-r--r--components/script/mem.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/mem.rs b/components/script/mem.rs
index 7b75758a22e..cc06a424480 100644
--- a/components/script/mem.rs
+++ b/components/script/mem.rs
@@ -12,7 +12,8 @@ use std::os::raw::c_void;
/// objects by hand in code.
#[allow(unsafe_code)]
pub unsafe fn malloc_size_of_including_raw_self<T: MallocSizeOf>(
- ops: &mut MallocSizeOfOps, obj: *const c_void) -> usize
-{
+ ops: &mut MallocSizeOfOps,
+ obj: *const c_void,
+) -> usize {
ops.malloc_size_of(obj) + (*(obj as *const T)).size_of(ops)
}