clippy_utils

Function is_else_clause

Source
pub fn is_else_clause(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> bool
Expand description

Checks if the given expression is the else clause of either an if or if let expression.