hashes: Implement Eq and Hash.
This commit is contained in:
parent
08ba164073
commit
33994c1042
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ use ns;
|
|||
use base64;
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum Algo {
|
||||
Sha_1,
|
||||
Sha_256,
|
||||
|
@ -68,7 +68,7 @@ impl IntoAttributeValue for Algo {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct Hash {
|
||||
pub algo: Algo,
|
||||
pub hash: Vec<u8>,
|
||||
|
|
Loading…
Reference in a new issue