Derive: Hash for FileHash
This commit is contained in:
parent
22b57d5ad9
commit
4c252577f2
1 changed files with 2 additions and 0 deletions
|
@ -2,12 +2,14 @@ use std::convert::{From, Into};
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fmt::{Debug, Display, Formatter};
|
use std::fmt::{Debug, Display, Formatter};
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
use std::hash::Hash;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq)]
|
||||||
#[derive(Eq)]
|
#[derive(Eq)]
|
||||||
|
#[derive(Hash)]
|
||||||
pub struct FileHash {
|
pub struct FileHash {
|
||||||
hash: String,
|
hash: String,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue