Skip to content

Commit

Permalink
Update for msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jun 17, 2023
1 parent d2dc452 commit 6fe9b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/coff/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<'data> MsImportFile<'data> {
// Unmangles a name by removing a `?`, `@` or `_` prefix.
fn strip_prefix(s: &[u8]) -> &[u8] {
match s.split_first() {
Some((b'?' | b'@' | b'_', rest)) => rest,
Some((b, rest)) if [b'?' | b'@' | b'_'].contains(b) => rest,
_ => s,
}
}
Expand Down

0 comments on commit 6fe9b7b

Please sign in to comment.