From 3c3c19d37c139de1aaaa1418492b702843b2c391 Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Mon, 3 Feb 2020 18:24:20 +0300 Subject: [PATCH] ethjson: impl Copy for hash type wrapper (#11423) --- json/src/hash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/src/hash.rs b/json/src/hash.rs index bf8bcbb4f..513917242 100644 --- a/json/src/hash.rs +++ b/json/src/hash.rs @@ -25,7 +25,7 @@ use ethereum_types::{H64 as Hash64, H160 as Hash160, H256 as Hash256, H520 as Ha macro_rules! impl_hash { ($name: ident, $inner: ident) => { /// Lenient hash json deserialization for test json files. - #[derive(Default, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Clone)] + #[derive(Default, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Clone, Copy)] pub struct $name(pub $inner); impl From<$name> for $inner {