Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Aug 30, 2024
1 parent 79fb328 commit 552ec22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,11 @@ fn main() {
match ledger_get_view_key(account) {
Ok(view_key_2) => {
println!("view_key: {}", view_key_2.to_hex());
return;
},
Err(e) => {
println!("\nError: {}\n", e);
return;
},
}

println!("\nTest completed successfully\n");
}

pub fn get_random_nonce() -> PrivateKey {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,11 @@ pub struct HeaderFullValidator {

impl HeaderFullValidator {
pub fn new(rules: ConsensusManager, difficulty_calculator: DifficultyCalculator) -> Self {

let gen_hash = rules.get_genesis_block().hash().clone();
let gen_hash = *rules.get_genesis_block().hash();
Self {
rules,
difficulty_calculator,
gen_hash
gen_hash,
}
}
}
Expand Down

0 comments on commit 552ec22

Please sign in to comment.