We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0636a66 commit 4048d26Copy full SHA for 4048d26
clippy_lints/src/format.rs
@@ -69,8 +69,7 @@ impl<'tcx> LateLintPass<'tcx> for UselessFormat {
69
_ => false,
70
};
71
if let Some(args) = format_args.args();
72
- if args.iter().all(FormatArgsArg::is_display);
73
- if !args.iter().any(FormatArgsArg::has_string_formatting);
+ if args.iter().all(|arg| arg.is_display() && !arg.has_string_formatting());
74
then {
75
let is_new_string = match value.kind {
76
ExprKind::Binary(..) => true,
0 commit comments