Skip to content

Commit

Permalink
Merge pull request #20 from alekseysidorov/derive-standard-traits
Browse files Browse the repository at this point in the history
Add more useful derives.
  • Loading branch information
sgeisler authored May 18, 2018
2 parents 09b90a9 + 300af4e commit 6821943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bech32"
version = "0.4.0"
version = "0.4.1"
authors = ["Clark Moody"]
repository = "https://github.com/rust-bitcoin/rust-bech32"
description = "Encodes and decodes the Bech32 format"
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ use std::str::FromStr;
use std::fmt::{Display, Formatter};

/// Integer in the range `0..32`
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, PartialOrd, Ord)]
#[derive(PartialEq, Eq, Debug, Copy, Clone, Default, PartialOrd, Ord, Hash)]
#[allow(non_camel_case_types)]
pub struct u5(u8);

Expand Down Expand Up @@ -99,7 +99,7 @@ pub trait CheckBase32<T: AsRef<[u5]>> {

/// Grouping structure for the human-readable part and the data part
/// of decoded Bech32 string.
#[derive(PartialEq, Debug, Clone)]
#[derive(PartialEq, Eq, Debug, Clone, PartialOrd, Ord, Hash)]
pub struct Bech32 {
/// Human-readable part
hrp: String,
Expand Down

0 comments on commit 6821943

Please sign in to comment.