From 109370d08abbba66fa64faac4bf2eca73f40018a Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Wed, 6 Nov 2024 10:41:22 +0100 Subject: [PATCH] Cargo fmt. --- src/validate.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/validate.rs b/src/validate.rs index 37d44836..0523132e 100644 --- a/src/validate.rs +++ b/src/validate.rs @@ -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") + } } } }