From 2ca1d8fadf7725959668912c234a1090fcf51e5e Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Tue, 3 Dec 2024 11:22:42 +0100 Subject: [PATCH] Drop unnecessary elided lifetime name from `get_best_block` .. which recently started to yield a warning on the `beta` channel of rustc. --- lightning-block-sync/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning-block-sync/src/lib.rs b/lightning-block-sync/src/lib.rs index 66669f89c00..3f981cd8786 100644 --- a/lightning-block-sync/src/lib.rs +++ b/lightning-block-sync/src/lib.rs @@ -78,7 +78,7 @@ pub trait BlockSource: Sync + Send { /// to allow for a more efficient lookup. /// /// [`get_header`]: Self::get_header - fn get_best_block<'a>(&'a self) -> AsyncBlockSourceResult<(BlockHash, Option)>; + fn get_best_block(&self) -> AsyncBlockSourceResult<(BlockHash, Option)>; } /// Result type for `BlockSource` requests.