From 760fa3d0b61e013d25281bf8db5ea17e5b8072b7 Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Sat, 5 Feb 2022 12:09:35 +0100 Subject: [PATCH] make fields public --- src/addr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addr.rs b/src/addr.rs index b71d7b63d..74f677453 100644 --- a/src/addr.rs +++ b/src/addr.rs @@ -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. @@ -326,7 +326,7 @@ impl Sub 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.