Function clippy_utils::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.
pub fn is_else_clause(tcx: TyCtxt<'_>, expr: &Expr<'_>) -> bool
Checks if the given expression is the else clause of either an if
or if let
expression.