Skip to content

Commit 043888a

Browse files
committed
clippy moment
1 parent 83c659f commit 043888a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

objdiff-core/src/obj/read.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,13 @@ fn map_symbol(
7575
flags |= SymbolFlag::Hidden;
7676
}
7777
if file.format() == object::BinaryFormat::Coff {
78-
match symbol.name() {
79-
Ok(name) => {
80-
if name.starts_with("except_data_")
81-
|| name.starts_with("__unwind")
82-
|| name.starts_with("__catch")
83-
{
84-
flags |= SymbolFlag::Hidden;
85-
}
78+
if let Ok(name) = symbol.name() {
79+
if name.starts_with("except_data_")
80+
|| name.starts_with("__unwind")
81+
|| name.starts_with("__catch")
82+
{
83+
flags |= SymbolFlag::Hidden;
8684
}
87-
Err(_) => {}
8885
}
8986
}
9087

0 commit comments

Comments
 (0)