Derive: Hash for FileID

This commit is contained in:
Matthias Beyer 2015-12-27 23:02:20 +01:00
parent 4c252577f2
commit f60c540ee5

View file

@ -2,6 +2,7 @@ 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 std::path::PathBuf; use std::path::PathBuf;
use std::result::Result; use std::result::Result;
use std::str::FromStr; use std::str::FromStr;
@ -12,6 +13,7 @@ use storage::file::id_type::FileIDType;
use storage::file::hash::FileHash; use storage::file::hash::FileHash;
#[derive(Clone)] #[derive(Clone)]
#[derive(Hash)]
pub struct FileID { pub struct FileID {
id: FileHash, id: FileHash,
id_type: FileIDType, id_type: FileIDType,