Tidy up match expressions #58

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

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 description provided.