Skip to content

Commit f115888

Browse files
committed
Derive additional traits for error type
Back in February this year I must have been mad, commit: `commit 2bbfc28` removed all the derives from the error type except `Debug`. This makes the error type un-ergonomic to use downstream - bad Tobin, no biscuit. Derive what has become our standard set of derives for error types in the `rust-bitcoin` eccosystem. Also include `Copy` because this error is exhaustive.
1 parent a4c0cfb commit f115888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)