diff options
Diffstat (limited to 'tests/test_bytes_vec_alloc.rs')
-rw-r--r-- | tests/test_bytes_vec_alloc.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_bytes_vec_alloc.rs b/tests/test_bytes_vec_alloc.rs index dc007cf..418a9cd 100644 --- a/tests/test_bytes_vec_alloc.rs +++ b/tests/test_bytes_vec_alloc.rs @@ -39,7 +39,11 @@ unsafe impl GlobalAlloc for Ledger { let off_ptr = (ptr as *mut usize).offset(-1); let orig_size = off_ptr.read(); if orig_size != layout.size() { - panic!("bad dealloc: alloc size was {}, dealloc size is {}", orig_size, layout.size()); + panic!( + "bad dealloc: alloc size was {}, dealloc size is {}", + orig_size, + layout.size() + ); } let new_layout = match Layout::from_size_align(layout.size() + USIZE_SIZE, 1) { |