mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-18 02:34:37 +00:00
Fix sync fallout (fmt)
This commit is contained in:
parent
62db617e40
commit
3d3a13d871
@ -218,12 +218,16 @@ impl<'a, 'tcx, 'b> SimilarNamesNameVisitor<'a, 'tcx, 'b> {
|
||||
let mut split_at = None;
|
||||
match existing_name.len.cmp(&count) {
|
||||
Ordering::Greater => {
|
||||
if existing_name.len - count != 1 || levenstein_not_1(&interned_name, &existing_name.interned.as_str()) {
|
||||
if existing_name.len - count != 1
|
||||
|| levenstein_not_1(&interned_name, &existing_name.interned.as_str())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
},
|
||||
Ordering::Less => {
|
||||
if count - existing_name.len != 1 || levenstein_not_1(&existing_name.interned.as_str(), &interned_name) {
|
||||
if count - existing_name.len != 1
|
||||
|| levenstein_not_1(&existing_name.interned.as_str(), &interned_name)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user