Fix rustfmt
This commit is contained in:
@@ -98,7 +98,10 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
|
|||||||
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
||||||
db.span_suggestion(expr.span,
|
db.span_suggestion(expr.span,
|
||||||
"replace it with",
|
"replace it with",
|
||||||
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
|
format!("{} {}= {}",
|
||||||
|
snip_a,
|
||||||
|
op.node.as_str(),
|
||||||
|
snip_r));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
// lhs op= l op r
|
// lhs op= l op r
|
||||||
@@ -179,7 +182,10 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
|
|||||||
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
||||||
db.span_suggestion(expr.span,
|
db.span_suggestion(expr.span,
|
||||||
"replace it with",
|
"replace it with",
|
||||||
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
|
format!("{} {}= {}",
|
||||||
|
snip_a,
|
||||||
|
op.node.as_str(),
|
||||||
|
snip_r));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user