From ead7812558f3b8d04f78781970f616aa11c53b1a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 27 May 2019 22:13:45 +0100 Subject: [PATCH] Derive Debug/PartialEq/Eq on types --- src/types.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types.rs b/src/types.rs index 1a0374e..8fb581d 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,23 +1,23 @@ /// A little-endian unsigned 128-bit integer. -#[derive(Default, Copy, Clone)] +#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)] pub struct Uint128 { pub bytes: [u8; 16], } /// A little-endian unsigned 256-bit integer. -#[derive(Default, Copy, Clone)] +#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)] pub struct Uint256 { pub bytes: [u8; 32], } /// An array of 160 bits. -#[derive(Default, Copy, Clone)] +#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)] pub struct Bytes20 { pub bytes: [u8; 20], } /// An array of 256 bits. -#[derive(Default, Copy, Clone)] +#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)] pub struct Bytes32 { pub bytes: [u8; 32], }