Skip to content

Commit 76dd1b2

Browse files
committed
fixup! Allow unmapping existing mapped ranges in the guest
Fix clippy warnings with all features enabled Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 7054dd5 commit 76dd1b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hyperlight_host/src/mem/layout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ impl<'a> ResolvedGpa<&'a [u8], &'a [u8]> {
140140
}
141141
}
142142
#[cfg(any(gdb, feature = "mem_profile"))]
143+
#[allow(unused)] // may be unused when nanvix-unstable is also enabled
143144
pub(crate) trait ReadableSharedMemory {
144145
fn copy_to_slice(&self, slice: &mut [u8], offset: usize) -> Result<()>;
145146
}
@@ -177,7 +178,7 @@ impl<T: coherence_hack::SharedMemoryAsRefMarker> ReadableSharedMemory for T {
177178
}
178179
#[cfg(any(gdb, feature = "mem_profile"))]
179180
impl<Sn: ReadableSharedMemory, Sc: ReadableSharedMemory> ResolvedGpa<Sn, Sc> {
180-
#[cfg(feature = "gdb")]
181+
#[allow(unused)] // may be unused when nanvix-unstable is also enabled
181182
pub(crate) fn copy_to_slice(&self, slice: &mut [u8]) -> Result<()> {
182183
match &self.base {
183184
BaseGpaRegion::Snapshot(sn) => sn.copy_to_slice(slice, self.offset),

0 commit comments

Comments
 (0)