diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index 8a3623c8..72e75d3e 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -33,12 +33,18 @@ use error::MapErrInto; use store::Result; /// The Index into the Store -#[derive(Debug, Clone, PartialEq, Hash, Eq, PartialOrd, Ord)] +#[derive(Debug, Clone, Hash, Eq, PartialOrd, Ord)] pub struct StoreId { base: Option, id: PathBuf, } +impl PartialEq for StoreId { + fn eq(&self, other: &StoreId) -> bool { + self.id == other.id + } +} + impl StoreId { pub fn new(base: Option, id: PathBuf) -> Result {