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 0d542b7 commit 2af642dCopy full SHA for 2af642d
clippy_lints/src/write.rs
@@ -443,12 +443,7 @@ impl Write {
443
return (Some(fmtstr), None);
444
};
445
match &token_expr.kind {
446
- ExprKind::Lit(lit)
447
- if match lit.kind {
448
- LitKind::Int(_, _) | LitKind::Float(_, _) => false,
449
- _ => true,
450
- } =>
451
- {
+ ExprKind::Lit(lit) if matches!(lit.kind, LitKind::Int(..) | LitKind::Float(..)) => {
452
let mut all_simple = true;
453
let mut seen = false;
454
for arg in &args {
0 commit comments