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 911aee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/primitives/benches/integer_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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, missing_docs)]
mod elias_fano {
use std::{fmt, ops::Deref};
use sucds::{mii_sequences::EliasFano, Serializable};
Expand Down Expand Up @@ -232,7 +232,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 911aee0

Please sign in to comment.