Run tests/ui/update-all-references.sh and refactor match into matches!
This commit is contained in:
parent
415394c3fc
commit
0d542b7310
1 changed files with 1 additions and 4 deletions
|
@ -470,10 +470,7 @@ impl Write {
|
|||
ExprKind::Assign(lhs, rhs, _) => {
|
||||
if_chain! {
|
||||
if let ExprKind::Lit(ref lit) = rhs.kind;
|
||||
if match lit.kind {
|
||||
LitKind::Int(_, _) | LitKind::Float(_, _) => false,
|
||||
_ => true,
|
||||
};
|
||||
if matches!(lit.kind, LitKind::Int(..) | LitKind::Float(..));
|
||||
if let ExprKind::Path(_, p) = &lhs.kind;
|
||||
then {
|
||||
let mut all_simple = true;
|
||||
|
|
Loading…
Reference in a new issue