Remove unnecessary lifetime

Clippy emits:

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

As suggested, remove the unnecessary lifetime.
This commit is contained in:
Tobin C. Harding 2023-01-27 08:34:12 +11:00
parent f90338021b
commit 53d4fe66b5
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 } }
/// 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,
writer: &mut BitStreamWriter<'a, W>,
writer: &mut BitStreamWriter<W>,
n: u64,
) -> Result<usize, io::Error>
where