mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
clippy: simplify else arm
This commit is contained in:
@@ -160,10 +160,8 @@ 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());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user