mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-25 13:08:50 +00:00
Improve code readability
This commit is contained in:
parent
b11e085aa2
commit
f67a1bd4ee
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user