Rewrite StoreId::storified()

This commit is contained in:
Matthias Beyer 2016-08-07 16:46:02 +02:00
parent 264d651f1d
commit 6841b7c340

View file

@ -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
} }
} }