mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 21:39:21 +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 actions = get_actions();
|
||||||
|
|
||||||
let selected_action = actions
|
let selected_action = actions
|
||||||
.iter()
|
.iter().find(|p| p.name.eq(&action));
|
||||||
.filter(|p| p.name.eq(&action))
|
|
||||||
.next();
|
|
||||||
|
|
||||||
let selected_action = match selected_action {
|
let selected_action = match selected_action {
|
||||||
None => {
|
None => {
|
||||||
|
Loading…
Reference in New Issue
Block a user