From 02aaaf5f85673cdf1ab66eab5b8ff24fc19a245c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Wed, 4 Sep 2024 11:36:14 +0300 Subject: [PATCH] ledger: Apply clippy suggestion. --- src/ledger/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ledger/mod.rs b/src/ledger/mod.rs index 60c3726..ddd542c 100644 --- a/src/ledger/mod.rs +++ b/src/ledger/mod.rs @@ -51,7 +51,7 @@ impl Ledger { .output() .expect("failed to execute process"); - ret.stdout.len() != 0 + !ret.stdout.is_empty() }; let database = Connection::open(path.clone()).unwrap();