1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-07-03 01:02:55 +00:00

chore: add linter config and related code cleanup

This commit is contained in:
2024-12-04 14:36:59 +01:00
parent 83d4857ed3
commit b4e1113f3d
3 changed files with 41 additions and 20 deletions

View File

@ -123,8 +123,7 @@ where
}
_ => None,
})
.filter(Option::is_some)
.map(|item| format!(" - {}\n", item.unwrap()))
.filter_map(|item| item.map(|item| format!(" - {item}\n")))
.collect::<Vec<_>>()
.join("");