mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-17 09:27:36 +00:00
cargo fmt
This commit is contained in:
parent
5de8bf3295
commit
07f424b484
1 changed files with 8 additions and 6 deletions
|
@ -318,14 +318,16 @@ impl Rpc {
|
|||
Ok(block) => {
|
||||
// Make sure this is actually the block for this number
|
||||
match block.miner_tx.prefix.inputs[0] {
|
||||
Input::Gen(actual) => if usize::try_from(actual).unwrap() == number {
|
||||
Ok(block)
|
||||
} else {
|
||||
Err(RpcError::InvalidNode)
|
||||
},
|
||||
Input::Gen(actual) => {
|
||||
if usize::try_from(actual).unwrap() == number {
|
||||
Ok(block)
|
||||
} else {
|
||||
Err(RpcError::InvalidNode)
|
||||
}
|
||||
}
|
||||
_ => Err(RpcError::InvalidNode),
|
||||
}
|
||||
},
|
||||
}
|
||||
e => e,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue