From e0669c8d2c38d7bccc3c9fd9e936307f4e4a8cfd Mon Sep 17 00:00:00 2001 From: Robert Vojta Date: Wed, 20 Nov 2019 10:38:01 +0100 Subject: [PATCH] Make fixed-hash test structs public This change silents all dead_code warnings for #[cfg(test)]. Signed-off-by: Robert Vojta --- fixed-hash/src/tests.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fixed-hash/src/tests.rs b/fixed-hash/src/tests.rs index c587281b4..da14bed13 100644 --- a/fixed-hash/src/tests.rs +++ b/fixed-hash/src/tests.rs @@ -1,8 +1,8 @@ -construct_fixed_hash! { struct H32(4); } -construct_fixed_hash! { struct H64(8); } -construct_fixed_hash! { struct H128(16); } -construct_fixed_hash! { struct H160(20); } -construct_fixed_hash! { struct H256(32); } +construct_fixed_hash! { pub struct H32(4); } +construct_fixed_hash! { pub struct H64(8); } +construct_fixed_hash! { pub struct H128(16); } +construct_fixed_hash! { pub struct H160(20); } +construct_fixed_hash! { pub struct H256(32); } impl_fixed_hash_conversions!(H256, H160);