Skip to content

Commit 78dc48e

Browse files
committed
1 parent 4253aa7 commit 78dc48e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &TokenStream, is_write: bool) -> (O
349349
if let Piece::NextArgument(arg) = piece {
350350
if arg.format.ty == "?" {
351351
// FIXME: modify rustc's fmt string parser to give us the current span
352-
span_lint(cx, USE_DEBUG, parser.prev_span, "use of `Debug`-based formatting");
352+
span_lint(cx, USE_DEBUG, parser.prev_token.span, "use of `Debug`-based formatting");
353353
}
354354
args.push(arg);
355355
}

0 commit comments

Comments
 (0)