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() }