From 5781896814710112428f513123ca10c9d5ae8667 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 22 Mar 2023 13:49:17 +1100 Subject: [PATCH] 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. --- bitcoin/src/blockdata/block.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bitcoin/src/blockdata/block.rs b/bitcoin/src/blockdata/block.rs index 773a5d3c..d81e7b4c 100644 --- a/bitcoin/src/blockdata/block.rs +++ b/bitcoin/src/blockdata/block.rs @@ -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 {