use matches!() macro for simple if let conditions
For more information about how rustc works, see the rustc dev guide.