Skip to content

Commit be2fdf4

Browse files
dr-orlovskyclarkmoody
authored andcommitted
Standard derives for error types
1 parent 43a1ed1 commit be2fdf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitcoin-bech32"
3-
version = "0.12.0"
3+
version = "0.12.1"
44
authors = ["Clark Moody"]
55
repository = "https://github.com/rust-bitcoin/rust-bech32-bitcoin"
66
description = "Encodes and decodes Bitcoin Segregated Witness addresses in Bech32"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ fn program_version_to_variant(version: u5) -> Option<Variant> {
248248
///
249249
/// BIP141 specifies Segregated Witness and defines valid program lengths
250250
/// for Version 0 scripts. Script version is also limited to values 0-16.
251-
#[derive(PartialEq, Debug)]
251+
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
252252
pub enum Error {
253253
/// Some Bech32 conversion error
254254
Bech32(bech32::Error),

0 commit comments

Comments
 (0)