clippy: remove unnecessary closures

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler committed 2021-01-20 16:22:59 +01:00
1 parent 4428818412
commit 22a9189ee0
10 files changed
+19 -20

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ pub fn read_pkg_state() -> Result<Option<PkgState>, Error> {
};
serde_json::from_str(&serialized_state)
.map(|s| Some(s))
.map(Some)
.map_err(|err| format_err!("could not parse cached package status - {}", err))
}