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

Commit

Permalink
Rust update broke build. Fixed!
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed Jun 30, 2024
1 parent 20d8310 commit fd48191
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions hypervisor/src/intel/addresses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use {
crate::intel::paging::PageTables,
core::ops::{Deref, DerefMut},
x86::bits64::paging::{PAddr, BASE_PAGE_SHIFT},
};

Expand Down Expand Up @@ -76,22 +75,6 @@ impl PhysicalAddress {
}
}

impl const Deref for PhysicalAddress {
type Target = PAddr;

/// Dereferences the `PhysicalAddress` to retrieve the underlying `PAddr`.
fn deref(&self) -> &Self::Target {
&self.0
}
}

impl const DerefMut for PhysicalAddress {
/// Provides mutable access to the underlying `PAddr`.
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}

/// Converts a virtual address to its corresponding physical address.
///
/// # Arguments
Expand Down

0 comments on commit fd48191

Please sign in to comment.