Add StoreId::without_base()
This commit is contained in:
parent
ab23d04e04
commit
d5723791a6
1 changed files with 5 additions and 0 deletions
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue