Supressed clippy errors and add some rust docs

This commit is contained in:
2025-02-28 21:12:41 +00:00
parent 096a66adbb
commit 4bad44e475
23 changed files with 567 additions and 169 deletions
+6 -1
View File
@@ -12,6 +12,7 @@
)]
use core::arch::asm;
use graphics::font::{FONT_SPLEEN_8X16, Font};
use limine::BaseRevision;
mod arch;
@@ -20,12 +21,16 @@ mod io;
/// 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.
/// Be sure to mark all limine requests with #[used], otherwise they may be
/// removed by the compiler.
#[used]
// The .requests section allows limine to find the requests faster and more safely.
#[unsafe(link_section = ".requests")]
static BASE_REVISION: BaseRevision = BaseRevision::new();
/// The default font used when setting up the framebuffer code.
pub const DEFAULT_FONT: Font = FONT_SPLEEN_8X16;
#[panic_handler]
fn rust_panic(_info: &core::panic::PanicInfo) -> ! {
hcf();