Skip to content

Commit

Permalink
Small bench compile fix and warnings (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHalpinParity committed Mar 1, 2024
1 parent c9125f8 commit a198223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/src/multitree_bench/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use super::*;

mod data;

pub use parity_db::{CompressionType, Db, Key, TreeReader, Value};
pub use parity_db::{Db, Key, TreeReader};
use parity_db::{NewNode, NodeRef, Operation};

use parking_lot::{RwLock, RwLockReadGuard};
Expand Down
4 changes: 1 addition & 3 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,7 @@ mod test {
}

#[cfg(feature = "bench")]
fn bench_find_entry_internal<
F: Fn(&IndexTable, u64, usize, &[u8; CHUNK_LEN]) -> (Entry, usize),
>(
fn bench_find_entry_internal<F: Fn(&IndexTable, u64, usize, &Chunk) -> (Entry, usize)>(
b: &mut Bencher,
f: F,
) {
Expand Down

0 comments on commit a198223

Please sign in to comment.