From fb1df533c5afa9c6ae2cc596fddaecff943904c9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 7 Aug 2016 16:46:21 +0200 Subject: [PATCH] Rewrite Into for StoreId --- libimagstore/src/storeid.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index c83e6898..b5031442 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -40,7 +40,9 @@ impl StoreId { impl Into for StoreId { fn into(self) -> PathBuf { - self.0 + let mut base = self.store_location; + base.push(self.id); + base } }