Skip to content

Compiler warnings for unused imports #429

Closed
@meerumschlungen

Description

@meerumschlungen

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions