Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Dec 17, 2024
1 parent 012a636 commit 621f3d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/sharechain/lmdb_block_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ pub trait BlockCache {

#[cfg(test)]
pub mod test {
use std::collections::HashMap;

use super::*;

pub(crate) struct InMemoryBlockCache {
Expand Down
6 changes: 5 additions & 1 deletion src/sharechain/p2chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,11 @@ mod test {
use tari_utilities::epoch_time::EpochTime;

use super::*;
use crate::sharechain::{in_memory::test::new_random_address, p2block::P2BlockBuilder};
use crate::sharechain::{
in_memory::test::new_random_address,
lmdb_block_storage::LmdbBlockStorage,
p2block::P2BlockBuilder,
};

#[test]
fn test_only_keeps_size() {
Expand Down
2 changes: 1 addition & 1 deletion src/sharechain/p2chain_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ mod test {
.with_miner_wallet_address(address.clone())
.build()
.unwrap();
let mut chain_level = P2ChainLevel::new(block.clone(), Arc::new(InMemoryBlockCache::new()));
let chain_level = P2ChainLevel::new(block.clone(), Arc::new(InMemoryBlockCache::new()));
chain_level.set_chain_block(block.generate_hash());

assert_eq!(
Expand Down

0 comments on commit 621f3d3

Please sign in to comment.