From e722874cee938cf8a5a81043482f5e08b43c655f Mon Sep 17 00:00:00 2001 From: Jacob Hinchliffe Date: Sun, 23 Feb 2025 01:38:21 +0000 Subject: [PATCH] Formatting and fixing warnings --- Cargo.toml | 6 +++--- kernel/build.rs | 4 ---- kernel/src/main.rs | 7 +------ 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index af5bc70..c6a9865 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,9 +4,9 @@ members = [ "lib/lib_framebuffer", "lib/lib_serial", "lib/lib_ascii", - "lib/lib_application", - "lib/lib_alloc", - "lib/lib_async", + "lib/lib_application", + "lib/lib_alloc", + "lib/lib_async", "lib/lib_keyboard", ] resolver = "2" diff --git a/kernel/build.rs b/kernel/build.rs index 9553c96..7059dd1 100644 --- a/kernel/build.rs +++ b/kernel/build.rs @@ -1,7 +1,3 @@ -use cc; -use std::process::Command; -use std::{env, path::Path}; - fn main() { // Tell cargo to rerun if these files change println!("cargo:rerun-if-changed=src"); diff --git a/kernel/src/main.rs b/kernel/src/main.rs index f790ab4..d9e5708 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -3,17 +3,12 @@ extern crate alloc; -use alloc::vec::Vec; - use foundry_os::{println, println_log}; use lib_async::task::{Executor, Task}; use lib_keyboard::print_keypresses; #[no_mangle] -unsafe extern "C" fn kmain() -> ! { - // All limine requests must also be referenced in a called function, otherwise they may be - // removed by the linker. - +extern "C" fn kmain() -> ! { println_log!(" [ Initialising Kernel Systems ] "); if let Err(err) = foundry_os::boot() { panic!("{}", err);