Rewrite StoreId::storified()

This commit is contained in:
Matthias Beyer 2016-08-07 16:46:02 +02:00
parent 264d651f1d
commit 6841b7c340
1 changed files with 5 additions and 4 deletions

View File

@ -26,11 +26,12 @@ impl StoreId {
debug!("Not storifying {:?}, because it is already.", self);
self
} else {
debug!("Create new store id out of: {:?} and {:?}", store.path(), self);
let mut new_id = store.path().clone();
new_id.push(self);
debug!("Create new store id out of: {:?} and {:?}", store.path(), self.id);
let new_id = StoreId { store_location: store.path().clone(), self.id };
debug!("Created: '{:?}'", new_id);
StoreId::from(new_id)
new_id
}
}