Merge rust-bitcoin/rust-bitcoin#1594: Remove unnecessary lifetime

53d4fe66b5 Remove unnecessary lifetime (Tobin C. Harding)

Pull request description:

  Clippy emits:

    warning: the following explicit lifetimes could be elided: 'a

  As suggested, remove the unnecessary lifetime.

ACKs for top commit:
  apoelstra:
    ACK 53d4fe66b5
  Kixunil:
    ACK 53d4fe66b5

Tree-SHA512: cc881164f319c6876cea9284aad5c613d3928864fe41e22f8c9c23a65aa6334e4c9fa6037f4ca7bed117e7915a389f152de2411f0b470975dd7e871e48de79c7
This commit is contained in:
Andrew Poelstra 2023-01-30 15:34:38 +00:00
commit 042b453f28
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 2 additions and 2 deletions

View File

@ -419,9 +419,9 @@ impl GcsFilter {
fn new(k0: u64, k1: u64, p: u8) -> GcsFilter { GcsFilter { k0, k1, p } } 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). /// Golomb-Rice encodes a number `n` to a bit stream (parameter 2^k).
fn golomb_rice_encode<'a, W>( fn golomb_rice_encode<W>(
&self, &self,
writer: &mut BitStreamWriter<'a, W>, writer: &mut BitStreamWriter<W>,
n: u64, n: u64,
) -> Result<usize, io::Error> ) -> Result<usize, io::Error>
where where