Skip to content

Commit

Permalink
Cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
ximon18 committed Nov 6, 2024
1 parent f2cabc3 commit 109370d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1717,10 +1717,18 @@ pub enum Nsec3HashError {
impl std::fmt::Display for Nsec3HashError {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
match self {
Nsec3HashError::UnsupportedAlgorithm => f.write_str("Unsupported algorithm"),
Nsec3HashError::AppendError => f.write_str("Append error: out of memory?"),
Nsec3HashError::OwnerHashError => f.write_str("Hashing produced an invalid owner hash"),
Nsec3HashError::CollisionDetected => f.write_str("Hash collision detected"),
Nsec3HashError::UnsupportedAlgorithm => {
f.write_str("Unsupported algorithm")
}
Nsec3HashError::AppendError => {
f.write_str("Append error: out of memory?")
}
Nsec3HashError::OwnerHashError => {
f.write_str("Hashing produced an invalid owner hash")
}
Nsec3HashError::CollisionDetected => {
f.write_str("Hash collision detected")
}
}
}
}
Expand Down

0 comments on commit 109370d

Please sign in to comment.