Skip to content

Commit bb3ad18

Browse files
committed
Use min_by_key instead of sorted_unstable_by_key
1 parent b86a628 commit bb3ad18

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

objdiff-core/src/diff/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use alloc::{
77
use core::{num::NonZeroU32, ops::Range};
88

99
use anyhow::Result;
10-
use itertools::Itertools;
1110

1211
use crate::{
1312
diff::{
@@ -755,8 +754,7 @@ fn find_symbol(
755754
&& symbol_section_kind(obj, symbol) == section_kind
756755
&& symbol_section(obj, symbol).is_some_and(|(name, _)| name == section_name)
757756
})
758-
.sorted_unstable_by_key(|&(_, symbol)| (symbol.section, symbol.address))
759-
.next()
757+
.min_by_key(|&(_, symbol)| (symbol.section, symbol.address))
760758
{
761759
return Some(symbol_idx);
762760
}

0 commit comments

Comments
 (0)