mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 23:07:50 +00:00
x86_64::VirtAddr already imported on L415 (#953)
`error[E0252]: the name 'VirtAddr' is defined multiple times`
This commit is contained in:
@@ -558,9 +558,8 @@ Let's test our translation function by translating some addresses:
|
|||||||
// in src/main.rs
|
// in src/main.rs
|
||||||
|
|
||||||
fn kernel_main(boot_info: &'static BootInfo) -> ! {
|
fn kernel_main(boot_info: &'static BootInfo) -> ! {
|
||||||
// new imports
|
// new import
|
||||||
use blog_os::memory::translate_addr;
|
use blog_os::memory::translate_addr;
|
||||||
use x86_64::VirtAddr;
|
|
||||||
|
|
||||||
[…] // hello world and blog_os::init
|
[…] // hello world and blog_os::init
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user