Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings for unused imports #429

Closed
meerumschlungen opened this issue Feb 28, 2024 · 1 comment
Closed

Compiler warnings for unused imports #429

meerumschlungen opened this issue Feb 28, 2024 · 1 comment

Comments

@meerumschlungen
Copy link

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)
@phil-opp
Copy link
Member

Thanks for reporting! That was an oversight in #424 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants