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,13 +160,11 @@ fn convert(ident: &mut Ident) -> String {
while let Some(c) = chars.next() { while let Some(c) = chars.next() {
if c != '_' { if c != '_' {
camel_ty.push(c); camel_ty.push(c);
} else { } else if let Some(c) = chars.next() {
if let Some(c) = chars.next() {
camel_ty.extend(c.to_uppercase()); camel_ty.extend(c.to_uppercase());
} }
} }
} }
}
// The Fut suffix is hardcoded right now; this macro isn't really meant to be general-purpose. // The Fut suffix is hardcoded right now; this macro isn't really meant to be general-purpose.
camel_ty.push_str("Fut"); camel_ty.push_str("Fut");