Fix sync fallout (fmt)

This commit is contained in:
flip1995 2020-07-17 21:39:05 +02:00
parent 62db617e40
commit 3d3a13d871
No known key found for this signature in database
GPG Key ID: 2CEFCDB27ED0BE79

View File

@ -218,12 +218,16 @@ fn check_ident(&mut self, ident: Ident) {
let mut split_at = None; let mut split_at = None;
match existing_name.len.cmp(&count) { match existing_name.len.cmp(&count) {
Ordering::Greater => { 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; continue;
} }
}, },
Ordering::Less => { 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; continue;
} }
}, },