cargo +nightly fmt

This commit is contained in:
Luke Parker
2023-08-01 00:47:36 -04:00
parent 88f88b574c
commit 3c38a0ec11
10 changed files with 40 additions and 40 deletions

View File

@@ -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)?;
}