Skip to content

Commit

Permalink
build: Add dead_code annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Akira Moroo <[email protected]>
  • Loading branch information
retrage committed May 19, 2024
1 parent 45dbd50 commit 65ea881
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bzimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::{

#[derive(Debug)]
pub enum Error {
#[allow(dead_code)]
File(fat::Error),
NoInitrdMemory,
MagicMissing,
Expand Down
1 change: 1 addition & 0 deletions src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ impl Default for LoaderConfig {
}
}

#[allow(dead_code)]
#[derive(Debug)]
pub enum Error {
File(fat::Error),
Expand Down
1 change: 1 addition & 0 deletions src/part.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl PartitionEntry {

#[derive(Debug)]
pub enum Error {
#[allow(dead_code)]
Block(BlockError),
HeaderNotFound,
ViolatesSpecification,
Expand Down

0 comments on commit 65ea881

Please sign in to comment.