Supressed clippy errors and add some rust docs
This commit is contained in:
+6
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user