mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-09 12:29:27 +00:00
cargo fmt
This commit is contained in:
parent
dc88b29b92
commit
27cd2ee2bb
2 changed files with 2 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -475,7 +475,7 @@ checksum = "73290177011694f38ec25e165d0387ab7ea749a4b81cd4c80dae5988229f7a57"
|
|||
|
||||
[[package]]
|
||||
name = "bitcoin-serai"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
dependencies = [
|
||||
"bitcoin",
|
||||
"flexible-transcript",
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue