Tidy up match expressions #58

Open
opened 2025-02-27 18:54:18 +00:00 by Vectornaut · 0 comments
Collaborator

Some of the match expressions in our code would read more cleanly as if let expressions. For example, there are several match expressions where one arm does something and the other arm is _ => ().

Other match expressions have unnecessary commas after braced blocks. These commas should be removed.

Some of the [`match` expressions](https://doc.rust-lang.org/rust-by-example/flow_control/match.html) in our code would read more cleanly as [`if let` expressions](https://doc.rust-lang.org/rust-by-example/flow_control/if_let.html). For example, there are several `match` expressions where one arm does something and the other arm is `_ => ()`. Other `match` expressions have unnecessary commas after braced blocks. These commas should be removed.
glen added the
maintenance
label 2025-03-12 22:02:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: glen/dyna3#58
No description provided.