x86_64::VirtAddr already imported on L415 (#953)

`error[E0252]: the name 'VirtAddr' is defined multiple times`
This commit is contained in:
Alexx Roche
2021-03-24 13:50:06 +01:00
committed by GitHub
parent ec4863ff93
commit 3315bfe2f6

View File

@@ -558,9 +558,8 @@ Let's test our translation function by translating some addresses:
// in src/main.rs
fn kernel_main(boot_info: &'static BootInfo) -> ! {
// new imports
// new import
use blog_os::memory::translate_addr;
use x86_64::VirtAddr;
[] // hello world and blog_os::init