minor updates.
This commit is contained in:
parent
8956d4cd5f
commit
3d35f57a03
@ -9,6 +9,7 @@ use rand::os::OsRng;
|
|||||||
|
|
||||||
macro_rules! impl_hash {
|
macro_rules! impl_hash {
|
||||||
($from: ident, $size: expr) => {
|
($from: ident, $size: expr) => {
|
||||||
|
#[derive(Eq)]
|
||||||
pub struct $from (pub [u8; $size]);
|
pub struct $from (pub [u8; $size]);
|
||||||
|
|
||||||
impl $from {
|
impl $from {
|
||||||
@ -71,7 +72,6 @@ macro_rules! impl_hash {
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl Eq for $from { }
|
|
||||||
|
|
||||||
impl Hash for $from {
|
impl Hash for $from {
|
||||||
fn hash<H>(&self, state: &mut H) where H: Hasher {
|
fn hash<H>(&self, state: &mut H) where H: Hasher {
|
||||||
|
Loading…
Reference in New Issue
Block a user