Rewrite StoreId::storified()
This commit is contained in:
parent
264d651f1d
commit
6841b7c340
1 changed files with 5 additions and 4 deletions
|
@ -26,11 +26,12 @@ impl StoreId {
|
||||||
debug!("Not storifying {:?}, because it is already.", self);
|
debug!("Not storifying {:?}, because it is already.", self);
|
||||||
self
|
self
|
||||||
} else {
|
} else {
|
||||||
debug!("Create new store id out of: {:?} and {:?}", store.path(), self);
|
debug!("Create new store id out of: {:?} and {:?}", store.path(), self.id);
|
||||||
let mut new_id = store.path().clone();
|
|
||||||
new_id.push(self);
|
let new_id = StoreId { store_location: store.path().clone(), self.id };
|
||||||
|
|
||||||
debug!("Created: '{:?}'", new_id);
|
debug!("Created: '{:?}'", new_id);
|
||||||
StoreId::from(new_id)
|
new_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue