Mark panic_fmt suggestion as machine applicable.

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
Mara Bos 2020-10-28 11:00:28 +01:00
parent 1993f1efe7
commit 5cefc3ce41

View File

@ -109,7 +109,7 @@ fn check_panic<'tcx>(cx: &LateContext<'tcx>, f: &'tcx hir::Expr<'tcx>, arg: &'tc
arg.span.shrink_to_lo(),
"or add a \"{}\" format string to use the message literally",
"\"{}\", ".into(),
Applicability::MaybeIncorrect,
Applicability::MachineApplicable,
);
}
l.emit();