Function clippy_utils::is_else_clause
source · pub fn is_else_clause(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> boolExpand description
Checks if the given expression is the else clause of either an if or if let expression.
pub fn is_else_clause(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> boolChecks if the given expression is the else clause of either an if or if let expression.