From 36a562c39fe27b005323045b7018f336958de701 Mon Sep 17 00:00:00 2001 From: Ron Kuris Date: Tue, 2 Jan 2024 11:04:42 -0800 Subject: [PATCH] Fix upcoming clippy lint (#459) --- firewood/src/db.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firewood/src/db.rs b/firewood/src/db.rs index dba39b00b..ace4a7593 100644 --- a/firewood/src/db.rs +++ b/firewood/src/db.rs @@ -889,9 +889,7 @@ impl Db { .position(|trie_hash| &trie_hash == root_hash)); } - let Some(nback) = nback else { - return None; - }; + let nback = nback?; let rlen = revisions.inner.len(); if rlen < nback {