cargo fmt
This commit is contained in:
parent
8b9dfad445
commit
5edf0795ed
@ -9,12 +9,12 @@
|
||||
extern crate alloc;
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
pub mod allocator;
|
||||
pub mod gdt;
|
||||
pub mod interrupts;
|
||||
pub mod memory;
|
||||
pub mod serial;
|
||||
pub mod vga_buffer;
|
||||
pub mod allocator;
|
||||
|
||||
pub trait Testable {
|
||||
fn run(&self) -> ();
|
||||
|
@ -6,16 +6,16 @@
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{boxed::Box, rc::Rc, vec, vec::Vec};
|
||||
use anos::println;
|
||||
use bootloader::{entry_point, BootInfo};
|
||||
use core::panic::PanicInfo;
|
||||
use alloc::{boxed::Box, rc::Rc, vec, vec::Vec};
|
||||
|
||||
entry_point!(kernel_main);
|
||||
|
||||
fn kernel_main(boot_info: &'static BootInfo) -> ! {
|
||||
use anos::memory::{self, BootInfoFrameAllocator};
|
||||
use anos::allocator;
|
||||
use anos::memory::{self, BootInfoFrameAllocator};
|
||||
use x86_64::{structures::paging::Page, VirtAddr};
|
||||
|
||||
println!("Hello World{}", "!");
|
||||
|
Loading…
Reference in New Issue
Block a user