diff --git a/uefi/src/table/boot.rs b/uefi/src/table/boot.rs index 778e51b3b..79c2c50ec 100644 --- a/uefi/src/table/boot.rs +++ b/uefi/src/table/boot.rs @@ -1737,8 +1737,6 @@ impl MemoryMapBackingMemory { } } -// Don't drop when we use this in unit tests. -#[cfg(not(test))] impl Drop for MemoryMapBackingMemory { fn drop(&mut self) { if let Some(bs) = system_table_boot() { @@ -1747,7 +1745,7 @@ impl Drop for MemoryMapBackingMemory { log::error!("Failed to deallocate memory map: {e:?}"); } } else { - log::debug!("Boot services are excited. Memory map won't be freed using the UEFI boot services allocator."); + log::debug!("Boot services are exited. Memory map won't be freed using the UEFI boot services allocator."); } } }