From 86ab4ba4b141fa1687b83090605938e8bcc8a4a1 Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Mon, 25 Jan 2016 12:32:30 +0100 Subject: [PATCH] Slimline translation from entry to file lock entry --- libimagstore/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 4abed6b6..6df78c4d 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -155,7 +155,7 @@ impl Store { // TODO: update the store entry status // make a file lock entry from the store entry - store_entry.get_entry().and_then(|entry| Ok(FileLockEntry::new(self, entry, id))) + store_entry.get_entry().map(|entry| FileLockEntry::new(self, entry, id)) } /// Iterate over all StoreIds for one module name