cargo fmt

This commit is contained in:
Luke Parker 2023-02-15 20:39:22 -05:00
parent 5de8bf3295
commit 07f424b484
No known key found for this signature in database

View file

@ -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,
}
}