Skip to content

Commit 3d35691

Browse files
committed
Fix lifetime elision warnings introduced by rustc 1.89
The just-released rustc 1.89 added a new `mismatched-lifetime-syntaxes` lint which had two warnings pop up. We fix these here.
1 parent be2bc07 commit 3d35691

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/chain/bitcoind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ impl BlockSource for BitcoindClient {
11551155
}
11561156
}
11571157

1158-
fn get_best_block(&self) -> AsyncBlockSourceResult<(bitcoin::BlockHash, Option<u32>)> {
1158+
fn get_best_block(&self) -> AsyncBlockSourceResult<'_, (bitcoin::BlockHash, Option<u32>)> {
11591159
match self {
11601160
BitcoindClient::Rpc { rpc_client, .. } => {
11611161
Box::pin(async move { rpc_client.get_best_block().await })

src/tx_broadcaster.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ where
3636
Self { queue_sender, queue_receiver: Mutex::new(queue_receiver), logger }
3737
}
3838

39-
pub(crate) async fn get_broadcast_queue(&self) -> MutexGuard<mpsc::Receiver<Vec<Transaction>>> {
39+
pub(crate) async fn get_broadcast_queue(
40+
&self,
41+
) -> MutexGuard<'_, mpsc::Receiver<Vec<Transaction>>> {
4042
self.queue_receiver.lock().await
4143
}
4244
}

0 commit comments

Comments
 (0)