From 1fbf83816b60fbaa2f9e85585338138c3efa949f Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 22 May 2020 13:17:30 +0900 Subject: Format with rustfmt (#389) * Format with rustfmt * Add rustfmt check to CI --- tests/test_bytes_vec_alloc.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/test_bytes_vec_alloc.rs') 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) { -- cgit v1.2.3