From 86f372774be1d25607e1d47d02e8b018c00f4ddc Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 31 Jan 2023 08:07:05 +1100 Subject: [PATCH] Add '_ back into the BitStreamWriter Recently we merged `commit 53d4fe66b57c255086def2b5e47afaddee776b75` to fix CI even though a better approach is to use `'_` because it assists reading the code (shows that the bit stream writer is not writing from a reference since its writing a `Copy` type `n`). Add back in the `'_` (I forget what its called). --- bitcoin/src/bip158.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/bip158.rs b/bitcoin/src/bip158.rs index b6309d69..67f549e2 100644 --- a/bitcoin/src/bip158.rs +++ b/bitcoin/src/bip158.rs @@ -421,7 +421,7 @@ impl GcsFilter { /// Golomb-Rice encodes a number `n` to a bit stream (parameter 2^k). fn golomb_rice_encode( &self, - writer: &mut BitStreamWriter, + writer: &mut BitStreamWriter<'_, W>, n: u64, ) -> Result where