Mark panic_fmt suggestion as machine applicable.
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
parent
1993f1efe7
commit
5cefc3ce41
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ fn check_panic<'tcx>(cx: &LateContext<'tcx>, f: &'tcx hir::Expr<'tcx>, arg: &'tc
|
||||||
arg.span.shrink_to_lo(),
|
arg.span.shrink_to_lo(),
|
||||||
"or add a \"{}\" format string to use the message literally",
|
"or add a \"{}\" format string to use the message literally",
|
||||||
"\"{}\", ".into(),
|
"\"{}\", ".into(),
|
||||||
Applicability::MaybeIncorrect,
|
Applicability::MachineApplicable,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
l.emit();
|
l.emit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue