Skip to content

Commit c4db0ad

Browse files
committed
clippy pls
1 parent 043888a commit c4db0ad

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

objdiff-core/src/obj/read.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,13 @@ fn map_symbol(
7474
{
7575
flags |= SymbolFlag::Hidden;
7676
}
77-
if file.format() == object::BinaryFormat::Coff {
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;
84-
}
85-
}
77+
if file.format() == object::BinaryFormat::Coff
78+
&& let Ok(name) = symbol.name()
79+
&& (name.starts_with("except_data_")
80+
|| name.starts_with("__unwind")
81+
|| name.starts_with("__catch"))
82+
{
83+
flags |= SymbolFlag::Hidden;
8684
}
8785

8886
let kind = match symbol.kind() {

0 commit comments

Comments
 (0)