clippy: remove unnecessary closures

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-15 15:21:34 +01:00
parent 4428818412
commit 22a9189ee0
10 changed files with 19 additions and 20 deletions

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