mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
cargo +nightly fmt
This commit is contained in:
@@ -171,10 +171,10 @@ impl<T: Transaction> Block<T> {
|
||||
Err(BlockError::ProvidedAfterNonProvided)?;
|
||||
}
|
||||
|
||||
let Some(local) =
|
||||
locally_provided.get_mut(order).and_then(|deque| deque.pop_front()) else {
|
||||
Err(BlockError::NonLocalProvided(txs.pop().unwrap()))?
|
||||
};
|
||||
let Some(local) = locally_provided.get_mut(order).and_then(|deque| deque.pop_front())
|
||||
else {
|
||||
Err(BlockError::NonLocalProvided(txs.pop().unwrap()))?
|
||||
};
|
||||
if tx != &local {
|
||||
Err(BlockError::DistinctProvided)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user