From fb649df1e769ae1b26fd9ccd76005cecf8ce60fa Mon Sep 17 00:00:00 2001 From: tohrnii <100405913+tohrnii@users.noreply.github.com> Date: Fri, 11 Aug 2023 20:09:34 +0000 Subject: [PATCH] feat: derive ord and partialord for blake3digest --- src/hash/blake/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hash/blake/mod.rs b/src/hash/blake/mod.rs index 9f02eec..16af67e 100644 --- a/src/hash/blake/mod.rs +++ b/src/hash/blake/mod.rs @@ -26,7 +26,7 @@ const DIGEST20_BYTES: usize = 20; /// /// Note: `N` can't be greater than `32` because [`Digest::as_bytes`] currently supports only 32 /// bytes. -#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "serde", serde(into = "String", try_from = "&str"))] pub struct Blake3Digest([u8; N]);