From b78f21ed21b804b51ec477a0e3139f79b7052942 Mon Sep 17 00:00:00 2001 From: gil Date: Thu, 16 May 2024 00:37:21 -0500 Subject: [PATCH] Comment out unused code blocks --- src/main.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index b870494..f224d77 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,14 +52,14 @@ extern "C" fn start() -> ! { unsafe { heap::init() }; // Now we're free to use dynamic allocation! - { - extern crate alloc; - use alloc::boxed::Box; - let _my_heap_pointer = Box::new(10); - // _my_heap_pointer lives on the heap! - } + // { + // extern crate alloc; + // use alloc::boxed::Box; + // let _my_heap_pointer = Box::new(10); + // // _my_heap_pointer lives on the heap! + // } - println!("This should not print because the console is not initialised."); + // println!("This should not print because the console is not initialised."); unsafe { uart::init_console(0x1000_0000) }; println!("Hello, world!");