Add StoreId::with_base()

This commit is contained in:
Matthias Beyer 2016-08-25 17:54:14 +02:00
parent 784f1cc4c6
commit 4c435d9347

View file

@ -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()),