Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clippy
Browse files Browse the repository at this point in the history
stringhandler committed Dec 17, 2024
1 parent 012a636 commit 621f3d3
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
@@ -113,6 +113,8 @@ pub trait BlockCache {

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

use super::*;

pub(crate) struct InMemoryBlockCache {
6 changes: 5 additions & 1 deletion src/sharechain/p2chain.rs
Original file line number Diff line number Diff line change
@@ -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() {
2 changes: 1 addition & 1 deletion src/sharechain/p2chain_level.rs
Original file line number Diff line number Diff line change
@@ -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!(

0 comments on commit 621f3d3

Please sign in to comment.