We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff284f8 commit fca00bbCopy full SHA for fca00bb
objdiff-core/src/diff/data.rs
@@ -38,12 +38,12 @@ pub fn diff_bss_symbol(
38
pub fn symbol_name_matches(left_name: &str, right_name: &str) -> bool {
39
// Match Metrowerks symbol$1234 against symbol$2345
40
// and GCC symbol.1234 against symbol.2345
41
- if let Some((prefix, suffix)) = left_name.split_once(&['$', '.']) {
+ if let Some((prefix, suffix)) = left_name.split_once(['$', '.']) {
42
if !suffix.chars().all(char::is_numeric) {
43
return false;
44
}
45
right_name
46
- .split_once(&['$', '.'])
+ .split_once(['$', '.'])
47
.is_some_and(|(p, s)| p == prefix && s.chars().all(char::is_numeric))
48
} else {
49
left_name == right_name
0 commit comments