Skip to content

Commit 47a718a

Browse files
fmt fixes
1 parent b0dc7bd commit 47a718a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

crates/batcher/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,8 @@ impl Batcher {
15021502
send_message(
15031503
messaging_sink.clone(),
15041504
SubmitProofResponseMessage::ProofReplaced,
1505-
).await;
1505+
)
1506+
.await;
15061507

15071508
// Note: This shuts down the sink, but does not wait for it to close, so the other side
15081509
// might not receive the message. However, we don't want to wait here since it would

crates/sdk/src/common/errors.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,15 @@ impl fmt::Display for SubmitError {
214214
write!(f, "Batcher responded with invalid batch inclusion data. Can't verify your proof was correctly included in the batch.")
215215
}
216216
SubmitError::BatchQueueLimitExceededError => {
217-
write!(f, "Error while adding entry to batch, queue limit exceeded.")
217+
write!(
218+
f,
219+
"Error while adding entry to batch, queue limit exceeded."
220+
)
218221
}
219-
SubmitError::ProofReplaced => write!(f, "Proof has been replaced by a higher fee for the same proof"),
222+
SubmitError::ProofReplaced => write!(
223+
f,
224+
"Proof has been replaced by a higher fee for the same proof"
225+
),
220226
SubmitError::GetNonceError(e) => write!(f, "Error while getting nonce {}", e),
221227
SubmitError::UserFundsUnlocked => write!(
222228
f,

0 commit comments

Comments
 (0)