Derive: Hash for FileHash

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

View file

@ -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,
} }