Skip to content

Commit fca00bb

Browse files
committed
Fix borrow issue
1 parent ff284f8 commit fca00bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

objdiff-core/src/diff/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ pub fn diff_bss_symbol(
3838
pub fn symbol_name_matches(left_name: &str, right_name: &str) -> bool {
3939
// Match Metrowerks symbol$1234 against symbol$2345
4040
// and GCC symbol.1234 against symbol.2345
41-
if let Some((prefix, suffix)) = left_name.split_once(&['$', '.']) {
41+
if let Some((prefix, suffix)) = left_name.split_once(['$', '.']) {
4242
if !suffix.chars().all(char::is_numeric) {
4343
return false;
4444
}
4545
right_name
46-
.split_once(&['$', '.'])
46+
.split_once(['$', '.'])
4747
.is_some_and(|(p, s)| p == prefix && s.chars().all(char::is_numeric))
4848
} else {
4949
left_name == right_name

0 commit comments

Comments
 (0)