Refactor examples

This commit is contained in:
Yota Toyama committed 2019-04-24 15:38:06 +00:00
1 parent 6b1380f4bb
commit 9a689d5c00
3 files changed
+3 -10

No files matched your search

+1 -3
View File
@@ -9,9 +9,7 @@ static GLOBAL_ALLOCATOR: Allocator = Allocator;
fn main() {
unsafe { Allocator::initialize() }
let mut _n = unsafe { GLOBAL_ALLOCATOR.alloc(Layout::from_size_align(2 ^ 8, 8).unwrap()) };
loop {
_n = unsafe { GLOBAL_ALLOCATOR.alloc(Layout::from_size_align(2 ^ 8, 8).unwrap()) };
unsafe { GLOBAL_ALLOCATOR.alloc(Layout::from_size_align(2 ^ 8, 8).unwrap()) };
}
}