From 00c4f06292d707b18990a326c51d90b8273ef20a Mon Sep 17 00:00:00 2001 From: Jose Narvaez Date: Wed, 14 Oct 2015 18:43:36 +0100 Subject: [PATCH] Manual fixups. --- src/libarena/lib.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs index 4c383edd5d7..0d599f736e6 100644 --- a/src/libarena/lib.rs +++ b/src/libarena/lib.rs @@ -200,8 +200,7 @@ struct TyDesc { align: usize, } -trait AllTypes { fn dummy(&self) { - } } +trait AllTypes { fn dummy(&self) { } } impl AllTypes for T { } unsafe fn get_tydesc() -> *const TyDesc { @@ -293,8 +292,7 @@ fn alloc_noncopy_inner(&self, n_bytes: usize, align: usize) -> (*const u8, *cons unsafe { let buf = head.as_ptr(); - (buf.offset(tydesc_start as isize), - buf.offset(start as isize)) + (buf.offset(tydesc_start as isize), buf.offset(start as isize)) } } @@ -392,7 +390,8 @@ struct TypedArenaChunk { next: *mut TypedArenaChunk, /// The number of elements that this chunk can hold. - capacity: usize, // Objects follow here, suitably aligned. + // Objects follow here, suitably aligned. + capacity: usize, } fn calculate_size(capacity: usize) -> usize {