Skip to content

Commit 426660f

Browse files
committed
Fix rustfmt
1 parent ddc6843 commit 426660f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

clippy_lints/src/assign_ops.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
9797
|db| if let (Some(snip_a), Some(snip_r)) =
9898
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
9999
db.span_suggestion(expr.span,
100-
"replace it with",
101-
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
100+
"replace it with",
101+
format!("{} {}= {}",
102+
snip_a,
103+
op.node.as_str(),
104+
snip_r));
102105
});
103106
};
104107
// lhs op= l op r
@@ -178,8 +181,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
178181
|db| if let (Some(snip_a), Some(snip_r)) =
179182
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
180183
db.span_suggestion(expr.span,
181-
"replace it with",
182-
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
184+
"replace it with",
185+
format!("{} {}= {}",
186+
snip_a,
187+
op.node.as_str(),
188+
snip_r));
183189
});
184190
}
185191
};

0 commit comments

Comments
 (0)