Skip to content

Commit

Permalink
Silence dead code warning
Browse files Browse the repository at this point in the history
The field is not read anywhere, but printed as part of the Debug output on error.
  • Loading branch information
phil-opp committed Apr 30, 2024
1 parent 4312531 commit fc48fe6
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 fc48fe6

Please sign in to comment.