Skip to content

Commit 3d32678

Browse files
authored
Merge pull request #340 from Freax13/expose-fields-in-errors
make fields public
2 parents fc356f8 + 760fa3d commit 3d32678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/addr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct PhysAddr(u64);
4141
/// overwritten possibly meaningful bits. This likely indicates a bug, for example an invalid
4242
/// address calculation.
4343
#[derive(Debug)]
44-
pub struct VirtAddrNotValid(u64);
44+
pub struct VirtAddrNotValid(pub u64);
4545

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

331331
impl PhysAddr {
332332
/// Creates a new physical address.

0 commit comments

Comments
 (0)