Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct PhysAddr(u64);
/// overwritten possibly meaningful bits. This likely indicates a bug, for example an invalid
/// address calculation.
#[derive(Debug)]
pub struct VirtAddrNotValid(u64);
pub struct VirtAddrNotValid(pub u64);

impl VirtAddr {
/// Creates a new canonical virtual address.
Expand Down Expand Up @@ -326,7 +326,7 @@ impl Sub<VirtAddr> for VirtAddr {
///
/// This means that bits 52 to 64 were not all null.
#[derive(Debug)]
pub struct PhysAddrNotValid(u64);
pub struct PhysAddrNotValid(pub u64);

impl PhysAddr {
/// Creates a new physical address.
Expand Down