Skip to content

Commit

Permalink
fix: remove explicit lifetime to fix the elided lifetime warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmitr committed Feb 12, 2025
1 parent f6e9e15 commit 309d839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chain/bitcoind_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl BlockSource for BitcoindRpcClient {
Box::pin(async move { self.rpc_client.get_block(header_hash).await })
}

fn get_best_block<'a>(&'a self) -> AsyncBlockSourceResult<(BlockHash, Option<u32>)> {
fn get_best_block(&self) -> AsyncBlockSourceResult<(BlockHash, Option<u32>)> {
Box::pin(async move { self.rpc_client.get_best_block().await })
}
}
Expand Down

0 comments on commit 309d839

Please sign in to comment.