File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ impl Write {
443
443
return ( Some ( fmtstr) , None ) ;
444
444
} ;
445
445
match & token_expr. kind {
446
- ExprKind :: Lit ( lit) if matches ! ( lit. kind, LitKind :: Int ( ..) | LitKind :: Float ( ..) ) => {
446
+ ExprKind :: Lit ( lit) if ! matches ! ( lit. kind, LitKind :: Int ( ..) | LitKind :: Float ( ..) ) => {
447
447
let mut all_simple = true ;
448
448
let mut seen = false ;
449
449
for arg in & args {
@@ -465,7 +465,7 @@ impl Write {
465
465
ExprKind :: Assign ( lhs, rhs, _) => {
466
466
if_chain ! {
467
467
if let ExprKind :: Lit ( ref lit) = rhs. kind;
468
- if matches!( lit. kind, LitKind :: Int ( ..) | LitKind :: Float ( ..) ) ;
468
+ if ! matches!( lit. kind, LitKind :: Int ( ..) | LitKind :: Float ( ..) ) ;
469
469
if let ExprKind :: Path ( _, p) = & lhs. kind;
470
470
then {
471
471
let mut all_simple = true ;
You can’t perform that action at this time.
0 commit comments