From 1d31ec17d777e57d5eb0f7c00c83bf237c571733 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Thu, 14 Jan 2021 22:24:02 +0100 Subject: [PATCH] Derive all traits for error; bump version --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7626155c..8aaaa644 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bech32" -version = "0.7.2" +version = "0.7.3" authors = ["Clark Moody"] repository = "https://github.com/rust-bitcoin/rust-bech32" description = "Encodes and decodes the Bech32 format" diff --git a/src/lib.rs b/src/lib.rs index b12fc764..578ab0aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -553,7 +553,7 @@ const GEN: [u32; 5] = [ ]; /// Error types for Bech32 encoding / decoding -#[derive(Copy, Clone, PartialEq, Debug)] +#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] pub enum Error { /// String does not contain the separator character MissingSeparator,