Skip to content

Commit

Permalink
Merge pull request #436 from rust-osdev/v0.9-fix-warning
Browse files Browse the repository at this point in the history
[v0.9] Silence dead code warning
  • Loading branch information
phil-opp committed Apr 30, 2024
2 parents 4312531 + fc48fe6 commit 2b7bd95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/page_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ pub struct MemoryInfo {

#[derive(Debug)]
pub enum MapKernelError {
Mapping(MapToError<Size4KiB>),
Mapping(
/// This field is never read, but still printed as part of the Debug output on error.
#[allow(dead_code)]
MapToError<Size4KiB>,
),
MultipleTlsSegments,
}

Expand Down

0 comments on commit 2b7bd95

Please sign in to comment.