diff options
| author | Jose Narvaez <jnarvaez@zendesk.com> | 2015-10-14 18:43:36 +0100 |
|---|---|---|
| committer | Jose Narvaez <jnarvaez@zendesk.com> | 2015-10-14 18:43:36 +0100 |
| commit | 00c4f06292d707b18990a326c51d90b8273ef20a (patch) | |
| tree | 44b106901a7da20eeca5b206aece92d9b7c508e4 | |
| parent | 82ec34332f0ac7d03819c2fc25481d9f27a950fe (diff) | |
| download | rust-00c4f06292d707b18990a326c51d90b8273ef20a.tar.gz rust-00c4f06292d707b18990a326c51d90b8273ef20a.zip | |
Manual fixups.
| -rw-r--r-- | src/libarena/lib.rs | 9 |
1 files 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<T:?Sized> AllTypes for T { } unsafe fn get_tydesc<T>() -> *const TyDesc { @@ -293,8 +292,7 @@ impl<'longer_than_self> Arena<'longer_than_self> { 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<T> { next: *mut TypedArenaChunk<T>, /// 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<T>(capacity: usize) -> usize { |
