diff --git a/src/cmd/sqlp.rs b/src/cmd/sqlp.rs index a0446aa2d..e2da084ea 100644 --- a/src/cmd/sqlp.rs +++ b/src/cmd/sqlp.rs @@ -502,7 +502,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> { sql_script .split(';') .map(std::string::ToString::to_string) - .filter(|s| s.trim().len() > 0) + .filter(|s| !s.trim().is_empty()) .collect() } else { // its not a sql script, just a single query diff --git a/src/main.rs b/src/main.rs index ae291d59d..213419e0b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,8 +25,6 @@ clippy::unnecessary_wraps, // false positive clippy::needless_doctest_main, - // performance - clippy::len_zero, // noisy clippy::missing_errors_doc, clippy::must_use_candidate,