mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-09 20:39:29 +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]]
|
[[package]]
|
||||||
name = "bitcoin-serai"
|
name = "bitcoin-serai"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitcoin",
|
"bitcoin",
|
||||||
"flexible-transcript",
|
"flexible-transcript",
|
||||||
|
|
|
@ -146,9 +146,7 @@ impl Scanner {
|
||||||
let mut res = vec![];
|
let mut res = vec![];
|
||||||
for (vout, output) in tx.output.iter().enumerate() {
|
for (vout, output) in tx.output.iter().enumerate() {
|
||||||
// If the vout index exceeds 2**32, stop scanning outputs
|
// If the vout index exceeds 2**32, stop scanning outputs
|
||||||
let Ok(vout) = u32::try_from(vout) else {
|
let Ok(vout) = u32::try_from(vout) else { break };
|
||||||
break
|
|
||||||
};
|
|
||||||
|
|
||||||
if let Some(offset) = self.scripts.get(&output.script_pubkey) {
|
if let Some(offset) = self.scripts.get(&output.script_pubkey) {
|
||||||
res.push(ReceivedOutput {
|
res.push(ReceivedOutput {
|
||||||
|
|
Loading…
Reference in a new issue