Compiler warnings for unused imports
meerumschlungen opened this issue · comments
meerumschlungen commented
Hi, following Blog OS (highly appreciated!) compilation of bootloader generates 2 warnings.
I searched for similar issues but no one reported similar ones. Am I using it wrong?
Building bootloader
Compiling bootloader v0.9.27 (/Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bootloader-0.9.27)
warning: unused import: `TranslateResult`
--> src/page_table.rs:5:67
|
5 | use x86_64::structures::paging::mapper::{MapToError, MapperFlush, TranslateResult, UnmapError};
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `Translate`
--> src/page_table.rs:8:5
|
8 | Translate,
| ^^^^^^^^^
warning: `bootloader` (bin "bootloader") generated 2 warnings (run `cargo fix --bin "bootloader"` to apply 2 suggestions)
Philipp Oppermann commented
Thanks for reporting! That was an oversight in #424 (comment).