In rust, you can use if let instead of match when it comes to unwrapping and directly using just a simple value.
if let
match
So instead of