minor updates.

This commit is contained in:
Gav Wood 2015-11-27 00:30:21 +01:00
parent 8956d4cd5f
commit 3d35f57a03
1 changed files with 1 additions and 1 deletions

View File

@ -9,6 +9,7 @@ use rand::os::OsRng;
macro_rules! impl_hash {
($from: ident, $size: expr) => {
#[derive(Eq)]
pub struct $from (pub [u8; $size]);
impl $from {
@ -71,7 +72,6 @@ macro_rules! impl_hash {
true
}
}
impl Eq for $from { }
impl Hash for $from {
fn hash<H>(&self, state: &mut H) where H: Hasher {