Rust 1.49 Clippy Fixes (#2835)

This commit is contained in:
Joseph T. Lyons
2020-12-31 21:13:59 -05:00
committed by GitHub
parent 3ef53fe2cd
commit 15d49e4096
19 changed files with 25 additions and 28 deletions

View File

@ -16,7 +16,7 @@ impl ToSqlite {
}
}
fn comma_concat(acc: String, current: String) -> String {
if acc == "" {
if acc.is_empty() {
current
} else {
format!("{}, {}", acc, current)