ethjson: impl Copy for hash type wrapper (#11423)

This commit is contained in:
Artem Vorotnikov
2020-02-03 18:24:20 +03:00
committed by GitHub
parent 7d9ff1d810
commit 3c3c19d37c

View File

@@ -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 {