Add StoreId::without_base()

This commit is contained in:
Matthias Beyer 2016-08-25 16:17:23 +02:00
parent ab23d04e04
commit d5723791a6

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 { pub fn storified(self, store: &Store) -> StoreId {
StoreId { StoreId {
base: Some(store.path().clone()), base: Some(store.path().clone()),