From 9754d95fccbae4541a39db6ff1dd8bea57f40393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Thu, 5 Sep 2024 16:30:43 +0300 Subject: [PATCH] ledger: Apply clippy suggestions. --- src/ledger/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ledger/mod.rs b/src/ledger/mod.rs index ee79f55..aa0acbf 100644 --- a/src/ledger/mod.rs +++ b/src/ledger/mod.rs @@ -92,10 +92,7 @@ impl Ledger { Ok(row.get::<_, i64>(0).unwrap()) }); - let count = match count { - Ok(count) => count, - Err(_) => 0, - }; + let count = count.unwrap_or(0); tracing::trace!("Current connection count: {count}"); count