cargo fmt

This commit is contained in:
Sainnhe Park 2022-01-13 16:20:18 +08:00
parent 8b9dfad445
commit 5edf0795ed
2 changed files with 3 additions and 3 deletions

View File

@ -9,12 +9,12 @@
extern crate alloc; extern crate alloc;
use core::panic::PanicInfo; use core::panic::PanicInfo;
pub mod allocator;
pub mod gdt; pub mod gdt;
pub mod interrupts; pub mod interrupts;
pub mod memory; pub mod memory;
pub mod serial; pub mod serial;
pub mod vga_buffer; pub mod vga_buffer;
pub mod allocator;
pub trait Testable { pub trait Testable {
fn run(&self) -> (); fn run(&self) -> ();

View File

@ -6,16 +6,16 @@
extern crate alloc; extern crate alloc;
use alloc::{boxed::Box, rc::Rc, vec, vec::Vec};
use anos::println; use anos::println;
use bootloader::{entry_point, BootInfo}; use bootloader::{entry_point, BootInfo};
use core::panic::PanicInfo; use core::panic::PanicInfo;
use alloc::{boxed::Box, rc::Rc, vec, vec::Vec};
entry_point!(kernel_main); entry_point!(kernel_main);
fn kernel_main(boot_info: &'static BootInfo) -> ! { fn kernel_main(boot_info: &'static BootInfo) -> ! {
use anos::memory::{self, BootInfoFrameAllocator};
use anos::allocator; use anos::allocator;
use anos::memory::{self, BootInfoFrameAllocator};
use x86_64::{structures::paging::Page, VirtAddr}; use x86_64::{structures::paging::Page, VirtAddr};
println!("Hello World{}", "!"); println!("Hello World{}", "!");