From d5a0a49ec222765d419bf1c2094307ff335b075d Mon Sep 17 00:00:00 2001 From: Jesse Bakker Date: Mon, 16 Oct 2023 11:32:54 +0200 Subject: [PATCH] Remove redundant closure --- dozer-cache/src/cache/lmdb/cache/main_environment/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dozer-cache/src/cache/lmdb/cache/main_environment/mod.rs b/dozer-cache/src/cache/lmdb/cache/main_environment/mod.rs index 638f0c49fb..c007661128 100644 --- a/dozer-cache/src/cache/lmdb/cache/main_environment/mod.rs +++ b/dozer-cache/src/cache/lmdb/cache/main_environment/mod.rs @@ -87,7 +87,7 @@ pub trait MainEnvironment: LmdbEnvironment { .load(&txn)? .map(|source_states| { serde_json::from_str(source_states.borrow()) - .map_err(|e| CacheError::DeserializeSourceStates(e)) + .map_err(CacheError::DeserializeSourceStates) }) .transpose() }