summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-06-17 21:14:44 +0200
committerGitHub <noreply@github.com>2017-06-17 21:14:44 +0200
commitf487550f8174e4ad8ee69361b01b19acedf69cba (patch)
treec1cf106e0b2ec035649546df25f186a2e64647e0
parentbc95c5615d8bac61757dabdc1e6148af626502ff (diff)
parent5b8c13892298dffa02e1242b08ddde603958befb (diff)
downloadimag-f487550f8174e4ad8ee69361b01b19acedf69cba.zip
imag-f487550f8174e4ad8ee69361b01b19acedf69cba.tar.gz
Merge pull request #971 from matthiasbeyer/libimagstore/storeid-local-part-altering
Add fn StoreId::local_push() for altering the local part of a StoreId
-rw-r--r--libimagstore/src/storeid.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs
index ab2727f..8f63d66 100644
--- a/libimagstore/src/storeid.rs
+++ b/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 {