2 Commits bc95c5615d ... f487550f81

Author SHA1 Message Date
  Matthias Beyer f487550f81 Merge pull request #971 from matthiasbeyer/libimagstore/storeid-local-part-altering 6 years ago
  Matthias Beyer 5b8c138922 Add fn StoreId::local_push() for altering the local part of a StoreId 6 years ago
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libimagstore/src/storeid.rs

+ 4 - 0
libimagstore/src/storeid.rs

@@ -123,6 +123,10 @@ impl StoreId {
         &self.id
     }
 
+    pub fn local_push<P: AsRef<Path>>(&mut self, path: P) {
+        self.id.push(path)
+    }
+
 }
 
 impl Display for StoreId {