Formatting changes, called 'cargo fmt'

This commit is contained in:
2025-02-22 03:09:46 +00:00
parent 34213ca744
commit f5f5aeb8dc
10 changed files with 17 additions and 29 deletions
+3 -7
View File
@@ -1,19 +1,17 @@
#![no_std]
#![feature(abi_x86_interrupt)]
use core::arch::asm;
use limine::request::{RequestsEndMarker, RequestsStartMarker};
use limine::BaseRevision;
pub use lib_serial::{serial_print, serial_println, serial_read};
pub use lib_ascii::{print, print_log, println, println_log, WRITER};
pub use lib_serial::{serial_print, serial_println, serial_read};
mod arch;
use lib_framebuffer;
/// Sets the base revision to the latest revision supported by the crate.
/// See specification for further info.
/// Be sure to mark all limine requests with #[used], otherwise they may be removed by the compiler.
@@ -49,14 +47,12 @@ pub fn hcf() -> ! {
}
pub fn boot() -> Result<(), &'static str> {
if !BASE_REVISION.is_supported() {
return Err("base revision not supported");
}
lib_serial::init()?;
arch::x86_64::interrupts::init_idt();
Ok(())
}
}