Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBrousseau committed Sep 2, 2023
1 parent 90b2cd9 commit 1e0ef16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ impl Error for BLSError {}
impl fmt::Display for BLSError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
BLSError::BadInfinityEncoding(i) => write!(f, "Bad encoding: infinity bit set but found non-zero bits in byte at index {}", i),
BLSError::BadInfinityEncoding(i) => write!(f, "Bad encoding: infinity bit set but found non-zero bits in byte at index {i}"),
BLSError::DeserializationError(ref err) => err.fmt(f),
BLSError::IntegerTooLarge(ref n, l) => write!(f, "Integer too large: cannot fit {} into a byte string of length {}", n, l),
BLSError::IntegerTooLarge(ref n, l) => write!(f, "Integer too large: cannot fit {n} into a byte string of length {l}"),
BLSError::NoSignaturesToAggregate => write!(f, "Cannot aggregate signatures: no signatures were passed in"),
BLSError::SignatureNotInCorrectSubgroup => write!(f, "Signature point is not in the correct subgroup. Please check the passed in secret key value."),
BLSError::WrongSizeForSignature(l) => write!(f, "Signature bytes must have length 96 or 192. Got {}", l),
BLSError::WrongSizeForPublicKey(l) => write!(f, "Public key bytes must have length 48 or 96. Got {}", l),
BLSError::WrongSizeForSignature(l) => write!(f, "Signature bytes must have length 96 or 192. Got {l}"),
BLSError::WrongSizeForPublicKey(l) => write!(f, "Public key bytes must have length 48 or 96. Got {l}"),
}
}
}
Expand Down

0 comments on commit 1e0ef16

Please sign in to comment.