Derive: Hash for FileID
This commit is contained in:
parent
4c252577f2
commit
f60c540ee5
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ use std::convert::{From, Into};
|
|||
use std::error::Error;
|
||||
use std::fmt::{Debug, Display, Formatter};
|
||||
use std::fmt;
|
||||
use std::hash::Hash;
|
||||
use std::path::PathBuf;
|
||||
use std::result::Result;
|
||||
use std::str::FromStr;
|
||||
|
@ -12,6 +13,7 @@ use storage::file::id_type::FileIDType;
|
|||
use storage::file::hash::FileHash;
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Hash)]
|
||||
pub struct FileID {
|
||||
id: FileHash,
|
||||
id_type: FileIDType,
|
||||
|
|
Loading…
Reference in a new issue