Skip to content

Commit 3c80c41

Browse files
committed
Fix: Don't use MemoryType::custom for matching against known types
1 parent 14c4e62 commit 3c80c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/binary/legacy_memory_region.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ where
130130
#[cfg(feature = "uefi_bin")]
131131
MemoryRegionKind::UnknownUefi(other) => {
132132
use uefi::table::boot::MemoryType as M;
133-
match M::custom(other) {
133+
match M(other) {
134134
M::LOADER_CODE
135135
| M::LOADER_DATA
136136
| M::BOOT_SERVICES_CODE

0 commit comments

Comments
 (0)