From 6841b7c340eaf1b4bd25a2b08c847a9c1a58c6dc Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 7 Aug 2016 16:46:02 +0200 Subject: [PATCH] Rewrite StoreId::storified() --- libimagstore/src/storeid.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index 60d59940..c83e6898 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -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 } }