Skip to content

Commit

Permalink
Clippy calm down
Browse files Browse the repository at this point in the history
  • Loading branch information
adamperkowski committed Jul 19, 2024
1 parent c3a5620 commit 2f58af5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions shell/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#![no_std]
#![no_main]
#![allow(clippy::empty_loop)]
#![warn(clippy::new_without_default)]
#![warn(clippy::missing_safety_doc)]

extern crate alloc;

use alloc::boxed::Box;
use bootloader::{entry_point, BootInfo};
use core::panic::PanicInfo;
use x86_64::structures::paging::PageTable;

use hlshell::{print, println};

Expand All @@ -16,7 +14,7 @@ entry_point!(kernel_main);
fn kernel_main(boot_info: &'static BootInfo) -> ! {
use hlshell::allocator;
use hlshell::mem::{self, BootInfoFrameAlloc};
use x86_64::{structures::paging::Page, VirtAddr};
use x86_64::VirtAddr;

#[cfg(debug_assertions)]
println!("Initializing...\n");
Expand All @@ -29,8 +27,6 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {

allocator::init_heap(&mut mapper, &mut frame_allocator).expect("Heap initialization failed");

let x = Box::new(41);

print!(
"\nHighlightOS Shell v{}\n\nhls < ",
env!("CARGO_PKG_VERSION")
Expand Down

0 comments on commit 2f58af5

Please sign in to comment.