Skip to content

Commit

Permalink
commit: implement CommitEncode for bool
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 31, 2023
1 parent 672e628 commit 08ef1be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commit_verify/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 08ef1be

Please sign in to comment.