Skip to content

Commit 0a785af

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 5400d86 commit 0a785af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/chain/bitcoind_rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl BlockSource for BitcoindRpcClient {
296296
Box::pin(async move { self.rpc_client.get_block(header_hash).await })
297297
}
298298

299-
fn get_best_block(&self) -> AsyncBlockSourceResult<(BlockHash, Option<u32>)> {
299+
fn get_best_block(&self) -> AsyncBlockSourceResult<'_, (BlockHash, Option<u32>)> {
300300
Box::pin(async move { self.rpc_client.get_best_block().await })
301301
}
302302
}

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)