Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reason: There is an `if let` statement in Rust that can help simplify code in such cases. For more have a look at Rust by Example book: https://rustbyexample.com/flow_control/if_let.html
- Loading branch information