Skip to content

Commit 2b7bd95

Browse files
authored
Merge pull request #436 from rust-osdev/v0.9-fix-warning
[v0.9] Silence dead code warning
2 parents 4312531 + fc48fe6 commit 2b7bd95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/page_table.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ pub struct MemoryInfo {
1717

1818
#[derive(Debug)]
1919
pub enum MapKernelError {
20-
Mapping(MapToError<Size4KiB>),
20+
Mapping(
21+
/// This field is never read, but still printed as part of the Debug output on error.
22+
#[allow(dead_code)]
23+
MapToError<Size4KiB>,
24+
),
2125
MultipleTlsSegments,
2226
}
2327

0 commit comments

Comments
 (0)