diff options
author | chansuke <chansuke@georepublic.de> | 2018-09-18 23:24:15 +0900 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2018-09-19 17:40:47 -0400 |
commit | c37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch) | |
tree | 1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/mem.rs | |
parent | 2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff) | |
download | servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip |
Format script component
Diffstat (limited to 'components/script/mem.rs')
-rw-r--r-- | components/script/mem.rs | 5 |
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) } |