Skip to content

Commit 3190aa6

Browse files
committed
Merge #72: Derive additional traits for error type
ab0c478 Bump version to 0.20.2-0.6.1 (Tobin C. Harding) f115888 Derive additional traits for error type (Tobin C. Harding) Pull request description: The recent `0.20.2-0.6.0` release brakes the `rust-bitcoin` build. Epic fail by me for not testing that before pushing the release PR. Back in February this year I must have been mad, commit: `2bbfc28e754cb823576fe80bbfa96e2eea278173 Only derive Debug for error type` removed all the derives from the error type except `Debug`. This makes the error type un-ergonomic to use downstream and breaks the `rust-bitcoin` build. Fix by deriving what has become our standard set of derives for error types in the `rust-bitcoin` eccosystem. Also include `Copy` because this error is exhaustive. ACKs for top commit: apoelstra: ACK ab0c478 Tree-SHA512: 2bcb639601cf7b1b587a644186ab0d91fe74a30724ed1f5120e6040acd2d21293f5235e652dc0b2cb9a1018134c995f3e9016cc6d09578847287a3aaaaed2d88
2 parents a4c0cfb + ab0c478 commit 3190aa6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.20.2-0.6.1
2+
3+
- Add derives on error type [#72](https://github.com/rust-bitcoin/rust-bitcoinconsensus/pull/72)
4+
15
## v0.20.2-0.6.0
26

37
* Bump MSRV to rust 1.48.0 [#64](https://github.com/rust-bitcoin/rust-bitcoinconsensus/pull/64)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "bitcoinconsensus"
33
# The first part is the Bitcoin Core version, the second part is the version of this lib.
4-
version = "0.20.2-0.6.0"
4+
version = "0.20.2-0.6.1"
55
authors = ["Tamas Blummer <tamas.blummer@gmail.com>"]
66
license = "Apache-2.0"
77
homepage = "https://github.com/rust-bitcoin/rust-bitcoinconsensus/"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub mod ffi {
167167
///
168168
/// [`libbitcoinconsensus`]: <https://github.com/bitcoin/bitcoin/blob/master/doc/shared-libraries.md#errors>
169169
#[allow(non_camel_case_types)]
170-
#[derive(Debug)]
170+
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
171171
#[repr(C)]
172172
pub enum Error {
173173
/// Default value, passed to `libbitcoinconsensus` as a return parameter.

0 commit comments

Comments
 (0)