clippy: simplify else arm

This commit is contained in:
Cyril Plisko
2017-12-04 17:44:14 -05:00
parent 4a7082b27c
commit 49f36e0b2b

View File

@@ -160,10 +160,8 @@ fn convert(ident: &mut Ident) -> String {
while let Some(c) = chars.next() {
if c != '_' {
camel_ty.push(c);
} else {
if let Some(c) = chars.next() {
camel_ty.extend(c.to_uppercase());
}
} else if let Some(c) = chars.next() {
camel_ty.extend(c.to_uppercase());
}
}
}