Skip to content

Commit 98a244f

Browse files
authored
Formatting and naming
1 parent 41115d9 commit 98a244f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/loops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,13 +2503,13 @@ fn check_needless_collect<'a, 'tcx>(expr: &'tcx Expr<'_>, cx: &LateContext<'a, '
25032503
NEEDLESS_COLLECT,
25042504
span,
25052505
NEEDLESS_COLLECT_MSG,
2506-
|db| {
2506+
|diag| {
25072507
let (arg, pred) = if contains_arg.starts_with('&') {
25082508
("x", &contains_arg[1..])
25092509
} else {
25102510
("&x", &*contains_arg)
25112511
};
2512-
db.span_suggestion(
2512+
diag.span_suggestion(
25132513
span,
25142514
"replace with",
25152515
format!(

clippy_lints/src/utils/internal_lints.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl EarlyLintPass for ClippyLintsInternal {
229229
CLIPPY_LINTS_INTERNAL,
230230
item.span,
231231
"this constant should be before the previous constant due to lexical \
232-
ordering",
232+
ordering",
233233
);
234234
}
235235
}

0 commit comments

Comments
 (0)