cargo fmt

This commit is contained in:
Luke Parker 2023-08-21 02:38:27 -04:00
parent dc88b29b92
commit 27cd2ee2bb
No known key found for this signature in database
2 changed files with 2 additions and 4 deletions

2
Cargo.lock generated
View file

@ -475,7 +475,7 @@ checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57"
[[package]]
name = "bitcoin-serai"
version = "0.2.0"
version = "0.3.0"
dependencies = [
"bitcoin",
"flexible-transcript",

View file

@ -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 {