From 27cd2ee2bb790c0eada6895c17f8b2f58f5467ab Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 21 Aug 2023 02:38:27 -0400 Subject: [PATCH] cargo fmt --- Cargo.lock | 2 +- coins/bitcoin/src/wallet/mod.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8c4302e7..5dd26751 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -475,7 +475,7 @@ checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57" [[package]] name = "bitcoin-serai" -version = "0.2.0" +version = "0.3.0" dependencies = [ "bitcoin", "flexible-transcript", diff --git a/coins/bitcoin/src/wallet/mod.rs b/coins/bitcoin/src/wallet/mod.rs index bfe5494c..d1146dba 100644 --- a/coins/bitcoin/src/wallet/mod.rs +++ b/coins/bitcoin/src/wallet/mod.rs @@ -146,9 +146,7 @@ impl Scanner { let mut res = vec![]; for (vout, output) in tx.output.iter().enumerate() { // If the vout index exceeds 2**32, stop scanning outputs - let Ok(vout) = u32::try_from(vout) else { - break - }; + let Ok(vout) = u32::try_from(vout) else { break }; if let Some(offset) = self.scripts.get(&output.script_pubkey) { res.push(ReceivedOutput {