]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unnecessary lifetime bound
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Apr 2022 16:34:51 +0000 (11:34 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 15 Apr 2022 16:41:34 +0000 (11:41 -0500)
lightning-block-sync/src/init.rs

index 5ba6ba39a8f3db2a2452decea64d9cef474b473d..f5d839d21ca31931ca08199a24c00e8f14867f06 100644 (file)
@@ -123,11 +123,11 @@ BlockSourceResult<ValidatedBlockHeader> where B::Target: BlockSource {
 /// [`SpvClient`]: crate::SpvClient
 /// [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager
 /// [`ChannelMonitor`]: lightning::chain::channelmonitor::ChannelMonitor
-pub async fn synchronize_listeners<'a, B: Deref + Sized + Send + Sync, C: Cache, L: chain::Listen + ?Sized>(
+pub async fn synchronize_listeners<B: Deref + Sized + Send + Sync, C: Cache, L: chain::Listen + ?Sized>(
        block_source: B,
        network: Network,
        header_cache: &mut C,
-       mut chain_listeners: Vec<(BlockHash, &'a L)>,
+       mut chain_listeners: Vec<(BlockHash, &L)>,
 ) -> BlockSourceResult<ValidatedBlockHeader> where B::Target: BlockSource {
        let best_header = validate_best_block_header(&*block_source).await?;