Function clippy_lints::utils::sugg::make_assoc
[−]
[src]
pub fn make_assoc(op: AssocOp, lhs: &Sugg, rhs: &Sugg) -> Sugg<'static>
Build the string for <lhs> <op> <rhs>
adding parenthesis when necessary.
Precedence of shift operator relative to other arithmetic operation is often confusing so parenthesis will always be added for a mix of these.