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 {
443443 return ( Some ( fmtstr) , None ) ;
444444 } ;
445445 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 ( ..) ) => {
447447 let mut all_simple = true ;
448448 let mut seen = false ;
449449 for arg in & args {
@@ -465,7 +465,7 @@ impl Write {
465465 ExprKind :: Assign ( lhs, rhs, _) => {
466466 if_chain ! {
467467 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 ( ..) ) ;
469469 if let ExprKind :: Path ( _, p) = & lhs. kind;
470470 then {
471471 let mut all_simple = true ;
You can’t perform that action at this time.
0 commit comments