fix clippy::single_char_pattern perf findings
This commit is contained in:
parent
1796de7bb1
commit
97e844a032
19 changed files with 36 additions and 36 deletions
|
@ -2226,8 +2226,8 @@ fn add_upstream_rust_crates<'a, B: ArchiveBuilder<'a>>(
|
|||
continue;
|
||||
}
|
||||
|
||||
let canonical = f.replace("-", "_");
|
||||
let canonical_name = name.replace("-", "_");
|
||||
let canonical = f.replace('-', "_");
|
||||
let canonical_name = name.replace('-', "_");
|
||||
|
||||
let is_rust_object =
|
||||
canonical.starts_with(&canonical_name) && looks_like_rust_object_file(&f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue