Skip to content

Commit

Permalink
more clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jan 9, 2024
1 parent e716c34 commit 87b8cb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/primitives/benches/integer_list.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use criterion::{black_box, criterion_group, criterion_main, BatchSize, BenchmarkId, Criterion};
use rand::prelude::*;

Expand Down Expand Up @@ -86,7 +87,7 @@ criterion_main!(benches);

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

Expand Down

0 comments on commit 87b8cb1

Please sign in to comment.