File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,6 @@ impl MemoryMapBackingMemory {
339
339
}
340
340
341
341
// Don't drop when we use this in unit tests.
342
- #[ cfg( not( test) ) ]
343
342
impl Drop for MemoryMapBackingMemory {
344
343
fn drop ( & mut self ) {
345
344
if let Some ( bs) = system_table_boot ( ) {
@@ -348,11 +347,7 @@ impl Drop for MemoryMapBackingMemory {
348
347
log:: error!( "Failed to deallocate memory map: {e:?}" ) ;
349
348
}
350
349
} else {
351
- #[ cfg( test) ]
352
- log:: debug!( "Boot services are not available in unit tests." ) ;
353
-
354
- #[ cfg( not( test) ) ]
355
- log:: debug!( "Boot services are excited. Memory map won't be freed using the UEFI boot services allocator." ) ;
350
+ log:: debug!( "Boot services are exited. Memory map won't be freed using the UEFI boot services allocator." ) ;
356
351
}
357
352
}
358
353
}
You can’t perform that action at this time.
0 commit comments