Update all tests to comply with clippy::manual_empty_string_creations

This commit is contained in:
Guilherme-Vasconcelos
2022-08-05 20:59:50 -03:00
parent 80826c3944
commit 1bf8841479
23 changed files with 40 additions and 38 deletions

View File

@@ -155,7 +155,7 @@ fn to_camel_case(name: &str) -> String {
name.split('_')
.map(|s| {
if s.is_empty() {
String::from("")
String::new()
} else {
[&s[0..1].to_uppercase(), &s[1..]].concat()
}