From: Jeffrey Czyz Date: Fri, 15 Apr 2022 16:34:51 +0000 (-0500) Subject: Remove unnecessary lifetime bound X-Git-Tag: v0.0.107~63^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b902cc7c49f7495c56c057e8e02f8faa2091c540;p=rust-lightning Remove unnecessary lifetime bound --- diff --git a/lightning-block-sync/src/init.rs b/lightning-block-sync/src/init.rs index 5ba6ba39a..f5d839d21 100644 --- a/lightning-block-sync/src/init.rs +++ b/lightning-block-sync/src/init.rs @@ -123,11 +123,11 @@ BlockSourceResult 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( block_source: B, network: Network, header_cache: &mut C, - mut chain_listeners: Vec<(BlockHash, &'a L)>, + mut chain_listeners: Vec<(BlockHash, &L)>, ) -> BlockSourceResult where B::Target: BlockSource { let best_header = validate_best_block_header(&*block_source).await?;