Skip to content

Commit e3a8237

Browse files
committed
fix clippy
1 parent 68754f4 commit e3a8237

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

objdiff-core/src/obj/read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ fn combine_sections(
877877
let base_name = section
878878
.name
879879
.get(1..)
880-
.and_then(|s| s.rfind(|c| c == '$' || c == '.'))
880+
.and_then(|s| s.rfind(['$', '.']))
881881
.and_then(|i| section.name.get(..i + 1))
882882
.unwrap_or(&section.name);
883883
match section.kind {

0 commit comments

Comments
 (0)