Add StoreId::without_base()

This commit is contained in:
Matthias Beyer 2016-08-25 16:17:23 +02:00
parent ab23d04e04
commit d5723791a6
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,11 @@ impl StoreId {
}
}
pub fn without_base(mut self) -> StoreId {
self.base = None;
self
}
pub fn storified(self, store: &Store) -> StoreId {
StoreId {
base: Some(store.path().clone()),