cargo fmt
This commit is contained in:
+9
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user