1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 05:19:21 +00:00

Improve code readability

This commit is contained in:
Pierre HUBERT 2022-03-18 16:28:08 +01:00
parent b11e085aa2
commit f67a1bd4ee

View File

@ -120,9 +120,7 @@ fn main() {
let actions = get_actions();
let selected_action = actions
.iter()
.filter(|p| p.name.eq(&action))
.next();
.iter().find(|p| p.name.eq(&action));
let selected_action = match selected_action {
None => {