diff --git a/examples/coroutines/src/main.rs b/examples/coroutines/src/main.rs index 121441d..8ea6558 100644 --- a/examples/coroutines/src/main.rs +++ b/examples/coroutines/src/main.rs @@ -9,10 +9,8 @@ use std::alloc::{GlobalAlloc, Layout}; static GLOBAL_ALLOCATOR: Allocator = Allocator; fn main() { - unsafe { - Allocator::initialize(); - Allocator::disable_gc(); - } + unsafe { Allocator::initialize() } + Allocator::disable_gc(); let handle = Coroutine::spawn(move |_, _| { let bottom: u8 = 0;