summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libimagstore/src/storeid.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs
index 8a3623c..72e75d3 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<PathBuf>,
id: PathBuf,
}
+impl PartialEq for StoreId {
+ fn eq(&self, other: &StoreId) -> bool {
+ self.id == other.id
+ }
+}
+
impl StoreId {
pub fn new(base: Option<PathBuf>, id: PathBuf) -> Result<StoreId> {