main.rs: minor whitespace cleanup
authorKit Rhett Aultman <kit@kitaultman.com>
Mon, 2 Sep 2024 23:43:26 +0000 (19:43 -0400)
committerKit Rhett Aultman <kit@kitaultman.com>
Mon, 2 Sep 2024 23:43:26 +0000 (19:43 -0400)
A prior commit didn't have rustfmt run on it, so this commit is a
catchup on the whitespace nits left behind.

src/main.rs

index 7c0fa4a4f68df5a40b2df17766eaea176b7bb70c..d7e0076909c5ca6c22968120d7b6c9c661882e9b 100644 (file)
@@ -13,6 +13,7 @@ mod trap;
 use core::arch::asm;
 use core::arch::global_asm;
 use core::panic::PanicInfo;
+
 global_asm!(include_str!("trap.S"));
 
 // cfg not test is set here because the analyzer and the test system
@@ -114,10 +115,11 @@ extern "C" fn entry() -> ! {
         trap_frame = in(reg)(&raw mut trap::TRAP_FRAME as usize)
           );
     }
+
     println!("Kernel init complete");
 
     println!("Going idle!");
-    unsafe { asm!("1:","wfi", "j 1b") }  // Hopefully wfi will make this less busy (1b is
+    unsafe { asm!("1:", "wfi", "j 1b") } // Hopefully wfi will make this less busy (1b is
                                          // 'backwards to 1:'
     loop {} // Definitely not gonna happen
 }