Rustify core/src/core (#1122)
Small refactoring of one folder, if it makes sense I could extend the scope. * Remove some cloning (real and just verbosity in the code) * Naming conventions like to/into* * Some Clippy's suggestions I found that we don't use field init shorthand syntax, so I didn't touch this part, was it discussed before?
This commit is contained in:
@@ -24,8 +24,8 @@ extern crate time;
|
||||
use std::fs;
|
||||
use std::sync::Arc;
|
||||
|
||||
use chain::types::*;
|
||||
use chain::Chain;
|
||||
use chain::types::*;
|
||||
use core::consensus;
|
||||
use core::core::hash::Hashed;
|
||||
use core::core::target::Difficulty;
|
||||
@@ -444,7 +444,7 @@ fn actual_diff_iter_output() {
|
||||
println!(
|
||||
"next_difficulty time: {}, diff: {}, duration: {} ",
|
||||
elem.0,
|
||||
elem.1.into_num(),
|
||||
elem.1.to_num(),
|
||||
last_time - elem.0
|
||||
);
|
||||
last_time = elem.0;
|
||||
|
||||
Reference in New Issue
Block a user