Skip to content

Commit bd317e2

Browse files
authored
style(clippy): address some new clippy warnings (#111)
1 parent 0e56718 commit bd317e2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

benches/sherlock.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use std::{fs::File, io::Read, ops::Range};
1+
use std::{fs::File, hint::black_box, io::Read, ops::Range};
22

33
use arithmetic_coding::Model;
4+
use criterion::{criterion_group, criterion_main, Criterion};
45
use fenwick_model::{simple::FenwickModel, ValueError};
56

67
mod common;
@@ -58,8 +59,6 @@ fn round_trip(input: &[u8]) {
5859
common::round_trip(model, input);
5960
}
6061

61-
use criterion::{black_box, criterion_group, criterion_main, Criterion};
62-
6362
#[allow(clippy::missing_panics_doc)]
6463
pub fn criterion_benchmark(c: &mut Criterion) {
6564
let mut input_string = String::new();

src/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ where
100100
/// Return an iterator over the decoded symbols.
101101
///
102102
/// The iterator will continue returning symbols until EOF is reached
103-
pub const fn decode_all(&mut self) -> DecodeIter<M, R> {
103+
pub const fn decode_all(&'_ mut self) -> DecodeIter<'_, M, R> {
104104
DecodeIter { decoder: self }
105105
}
106106

0 commit comments

Comments
 (0)