From 4c435d9347fb366177feab5c1ad5caf325ea3b31 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 25 Aug 2016 17:54:14 +0200 Subject: [PATCH] Add StoreId::with_base() --- libimagstore/src/storeid.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index 8300da29..b98e1714 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -40,6 +40,11 @@ impl StoreId { self } + pub fn with_base(mut self, base: PathBuf) -> Self { + self.base = Some(base); + self + } + pub fn storified(self, store: &Store) -> StoreId { StoreId { base: Some(store.path().clone()),