Skip to content

Commit 87b8cb1

Browse files
committed
more clippy fixes
1 parent e716c34 commit 87b8cb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/primitives/benches/integer_list.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(missing_docs)]
12
use criterion::{black_box, criterion_group, criterion_main, BatchSize, BenchmarkId, Criterion};
23
use rand::prelude::*;
34

@@ -86,7 +87,7 @@ criterion_main!(benches);
8687

8788
/// Implementation from https://github.com/paradigmxyz/reth/blob/cda5d4e7c53ccc898b7725eb5d3b46c35e4da7f8/crates/primitives/src/integer_list.rs
8889
/// adapted to work with `sucds = "0.8.1"`
89-
#[allow(unused)]
90+
#[allow(unused, unreachable_pub)]
9091
mod elias_fano {
9192
use std::{fmt, ops::Deref};
9293
use sucds::{mii_sequences::EliasFano, Serializable};
@@ -232,7 +233,7 @@ mod elias_fano {
232233
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, arbitrary::Error> {
233234
let mut nums: Vec<usize> = Vec::arbitrary(u)?;
234235
nums.sort();
235-
Ok(Self::new(&nums).map_err(|_| arbitrary::Error::IncorrectFormat)?)
236+
Self::new(&nums).map_err(|_| arbitrary::Error::IncorrectFormat)
236237
}
237238
}
238239

0 commit comments

Comments
 (0)