From 08ef1beccac4a833a72264c4047516728f6b2337 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Tue, 31 Oct 2023 15:11:19 +0100 Subject: [PATCH] commit: implement CommitEncode for bool --- commit_verify/src/encode.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commit_verify/src/encode.rs b/commit_verify/src/encode.rs index e2f59a31..f55bd17f 100644 --- a/commit_verify/src/encode.rs +++ b/commit_verify/src/encode.rs @@ -234,6 +234,9 @@ pub mod strategies { fn commit_encode(&self, e: &mut impl io::Write) { Holder::new(self).commit_encode(e) } } + impl CommitStrategy for bool { + type Strategy = Strict; + } impl CommitStrategy for u8 { type Strategy = Strict; }