Replace another instance of match with matches
This commit is contained in:
parent
0d542b7310
commit
2af642da28
1 changed files with 1 additions and 6 deletions
|
@ -443,12 +443,7 @@ impl Write {
|
||||||
return (Some(fmtstr), None);
|
return (Some(fmtstr), None);
|
||||||
};
|
};
|
||||||
match &token_expr.kind {
|
match &token_expr.kind {
|
||||||
ExprKind::Lit(lit)
|
ExprKind::Lit(lit) if matches!(lit.kind, LitKind::Int(..) | LitKind::Float(..)) => {
|
||||||
if match lit.kind {
|
|
||||||
LitKind::Int(_, _) | LitKind::Float(_, _) => false,
|
|
||||||
_ => true,
|
|
||||||
} =>
|
|
||||||
{
|
|
||||||
let mut all_simple = true;
|
let mut all_simple = true;
|
||||||
let mut seen = false;
|
let mut seen = false;
|
||||||
for arg in &args {
|
for arg in &args {
|
||||||
|
|
Loading…
Reference in a new issue