cube-seal: prefer is_empty() (clippy)

This commit is contained in:
luulu
2026-09-19 05:27:31 -04:00
parent 504a667cd9
commit 41862194e9
+1 -1
View File
@@ -73,7 +73,7 @@ fn main() {
.and_then(|v| v.parse().ok())
.unwrap_or(5000);
let positional: Vec<&String> = args.iter().filter(|a| !a.starts_with("--")).collect();
if positional.len() < 1 {
if positional.is_empty() {
eprintln!("usage: cube-seal <list-file> [<key-file>] [--dry-run] [--open-check] [--sync-every N]");
std::process::exit(2);
}