Run cargo +nightly rustfmt

We just merged a patch to enable formatting in CI but commit: `05fdead2
Feature: Add difficulty_float method for block::Header.` must have
slipped in.

Run the formatter.
This commit is contained in:
Tobin C. Harding 2023-03-22 13:49:17 +11:00
parent 24af58c5ad
commit 5781896814
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 3 deletions

View File

@ -69,9 +69,7 @@ impl Header {
pub fn difficulty(&self) -> u128 { self.target().difficulty() }
/// Computes the popular "difficulty" measure for mining and returns a float value of f64.
pub fn difficulty_float(&self) -> f64 {
self.target().difficulty_float()
}
pub fn difficulty_float(&self) -> f64 { self.target().difficulty_float() }
/// Checks that the proof-of-work for the block is valid, returning the block hash.
pub fn validate_pow(&self, required_target: Target) -> Result<BlockHash, Error> {