File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/hyperlight_host/src/mem Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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
143144pub ( 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" ) ) ]
179180impl < 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 ) ,
You can’t perform that action at this time.
0 commit comments