From 4bb10f32a40434e68a3a9ab40cc36786c3103b84 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Mon, 19 Jun 2023 19:05:59 +0100 Subject: [PATCH] Fix silly mistake --- src/read/coff/import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read/coff/import.rs b/src/read/coff/import.rs index 6d589933..a88f38da 100644 --- a/src/read/coff/import.rs +++ b/src/read/coff/import.rs @@ -36,7 +36,7 @@ impl<'data> CoffImportFile<'data> { // Unmangles a name by removing a `?`, `@` or `_` prefix. fn strip_prefix(s: &[u8]) -> &[u8] { match s.split_first() { - Some((b, rest)) if [b'?' | b'@' | b'_'].contains(b) => rest, + Some((b, rest)) if [b'?', b'@', b'_'].contains(b) => rest, _ => s, } }