Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit fd48191

Browse files
committed
Rust update broke build. Fixed!
1 parent 20d8310 commit fd48191

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

hypervisor/src/intel/addresses.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
use {
88
crate::intel::paging::PageTables,
9-
core::ops::{Deref, DerefMut},
109
x86::bits64::paging::{PAddr, BASE_PAGE_SHIFT},
1110
};
1211

@@ -76,22 +75,6 @@ impl PhysicalAddress {
7675
}
7776
}
7877

79-
impl const Deref for PhysicalAddress {
80-
type Target = PAddr;
81-
82-
/// Dereferences the `PhysicalAddress` to retrieve the underlying `PAddr`.
83-
fn deref(&self) -> &Self::Target {
84-
&self.0
85-
}
86-
}
87-
88-
impl const DerefMut for PhysicalAddress {
89-
/// Provides mutable access to the underlying `PAddr`.
90-
fn deref_mut(&mut self) -> &mut Self::Target {
91-
&mut self.0
92-
}
93-
}
94-
9578
/// Converts a virtual address to its corresponding physical address.
9679
///
9780
/// # Arguments

0 commit comments

Comments
 (0)