Skip to content

Commit 8531f1c

Browse files
authored
Merge pull request talaia-labs#60 from talaia-labs/fix-clippy-rust-1.61
Fixes a clippy issue in main raised by rustc 1.61.0
2 parents 9e95b6a + b67237e commit 8531f1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

teos/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ async fn main() {
155155
);
156156
let mut derefed = bitcoin_cli.deref();
157157
// Load last known block from DB if found. Poll it from Bitcoind otherwise.
158-
let tip = if let Ok(block_hash) = dbm.lock().unwrap().load_last_known_block() {
158+
let last_known_block = dbm.lock().unwrap().load_last_known_block();
159+
let tip = if let Ok(block_hash) = last_known_block {
159160
derefed
160161
.get_header(&block_hash, None)
161162
.await

0 commit comments

Comments
 (0)