Skip to content

Commit 00c4f06

Browse files
author
Jose Narvaez
committed
Manual fixups.
1 parent 82ec343 commit 00c4f06

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/libarena/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ struct TyDesc {
200200
align: usize,
201201
}
202202

203-
trait AllTypes { fn dummy(&self) {
204-
} }
203+
trait AllTypes { fn dummy(&self) { } }
205204
impl<T:?Sized> AllTypes for T { }
206205

207206
unsafe fn get_tydesc<T>() -> *const TyDesc {
@@ -293,8 +292,7 @@ impl<'longer_than_self> Arena<'longer_than_self> {
293292

294293
unsafe {
295294
let buf = head.as_ptr();
296-
(buf.offset(tydesc_start as isize),
297-
buf.offset(start as isize))
295+
(buf.offset(tydesc_start as isize), buf.offset(start as isize))
298296
}
299297
}
300298

@@ -392,7 +390,8 @@ struct TypedArenaChunk<T> {
392390
next: *mut TypedArenaChunk<T>,
393391

394392
/// The number of elements that this chunk can hold.
395-
capacity: usize, // Objects follow here, suitably aligned.
393+
// Objects follow here, suitably aligned.
394+
capacity: usize,
396395
}
397396

398397
fn calculate_size<T>(capacity: usize) -> usize {

0 commit comments

Comments
 (0)