Skip to content

Commit

Permalink
Some clippy autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sovenok-Hacker committed Apr 28, 2024
1 parent 761d62f commit 3ec9495
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ mod tests {

use primitive_types::U256;

use crate::static_values::BEGINNING_DIFFICULTY;


use super::{dump_u256, load_u256, recalculate_difficulty};

Expand Down
6 changes: 3 additions & 3 deletions tests/block_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn dump_parse_derivative_block() {
payment_transaction,
};
let dumped_block = derivative_block.dump().unwrap();
let parsed_block = DerivativeBlock::parse(&dumped_block[1..].to_vec()).unwrap();
let parsed_block = DerivativeBlock::parse(&dumped_block[1..]).unwrap();

assert_eq!(
derivative_block.default_info.timestamp,
Expand Down Expand Up @@ -216,7 +216,7 @@ fn validate_derivative_block() {
};
let prev_block = DerivativeBlock {
default_info: basic_data,
payment_transaction: payment_transaction,
payment_transaction,
};
let payment_transaction = [0; 32];
let basic_data = block::BasicInfo {
Expand All @@ -229,7 +229,7 @@ fn validate_derivative_block() {
};
let derivative_block = DerivativeBlock {
default_info: basic_data,
payment_transaction: payment_transaction,
payment_transaction,
};

assert!(!derivative_block
Expand Down
3 changes: 1 addition & 2 deletions tests/chain_test.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use blockchaintree::{
block,
chain::{self, Chain, DerivativeChain},
static_values::{BEGINNING_DIFFICULTY, INCEPTION_TIMESTAMP, ROOT_PUBLIC_ADDRESS},
chain::{self, Chain},
tools,
transaction::{self, Transactionable},
};
Expand Down

0 comments on commit 3ec9495

Please sign in to comment.