clippy_utils

Function binary_expr_needs_parentheses

Source
pub fn binary_expr_needs_parentheses(expr: &Expr<'_>) -> bool
Expand description

Returns true if the given expr is binary expression that needs to be wrapped in parentheses.