aboutsummaryrefslogtreecommitdiff
path: root/tests/test_bytes_vec_alloc.rs
diff options
context:
space:
mode:
authorGravatar Taiki Endo <te316e89@gmail.com> 2020-05-22 13:17:30 +0900
committerGravatar GitHub <noreply@github.com> 2020-05-22 13:17:30 +0900
commit1fbf83816b60fbaa2f9e85585338138c3efa949f (patch)
tree859b49f1db1bf180a58045772f585b2ad5909379 /tests/test_bytes_vec_alloc.rs
parent5e93fa4c6b3d6209329a3a9c90c6823886affea1 (diff)
downloadbytes-1fbf83816b60fbaa2f9e85585338138c3efa949f.tar.gz
bytes-1fbf83816b60fbaa2f9e85585338138c3efa949f.tar.zst
bytes-1fbf83816b60fbaa2f9e85585338138c3efa949f.zip
Format with rustfmt (#389)
* Format with rustfmt * Add rustfmt check to CI
Diffstat (limited to 'tests/test_bytes_vec_alloc.rs')
-rw-r--r--tests/test_bytes_vec_alloc.rs6
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) {