From 53d4fe66b57c255086def2b5e47afaddee776b75 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 27 Jan 2023 08:34:12 +1100 Subject: [PATCH] Remove unnecessary lifetime Clippy emits: warning: the following explicit lifetimes could be elided: 'a As suggested, remove the unnecessary lifetime. --- bitcoin/src/bip158.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/bip158.rs b/bitcoin/src/bip158.rs index d16b511b..b6309d69 100644 --- a/bitcoin/src/bip158.rs +++ b/bitcoin/src/bip158.rs @@ -419,9 +419,9 @@ impl GcsFilter { fn new(k0: u64, k1: u64, p: u8) -> GcsFilter { GcsFilter { k0, k1, p } } /// Golomb-Rice encodes a number `n` to a bit stream (parameter 2^k). - fn golomb_rice_encode<'a, W>( + fn golomb_rice_encode( &self, - writer: &mut BitStreamWriter<'a, W>, + writer: &mut BitStreamWriter, n: u64, ) -> Result where