cargo fmt

This commit is contained in:
Kenny Levinsen
2020-01-08 11:31:56 +01:00
parent d6b53be516
commit 8877674f43
13 changed files with 80 additions and 41 deletions
+9 -3
View File
@@ -37,9 +37,15 @@ impl Desktop {
hidden: desktop.get("Hidden").unwrap_or(&"".to_string()) == "true",
exec: desktop.get("Exec").map(|x| x.to_string()),
url: desktop.get("URL").map(|x| x.to_string()),
keywords: desktop.get("Keywords").map(|x|
x.split(";").map(|y| y.trim().to_string()).filter(|z| z != "").collect()
).unwrap_or(vec![]),
keywords: desktop
.get("Keywords")
.map(|x| {
x.split(";")
.map(|y| y.trim().to_string())
.filter(|z| z != "")
.collect()
})
.unwrap_or(vec![]),
}),
None => Err(Box::new(io_error::new(
ErrorKind::NotFound,