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