From d7509220fa3a3c3bc6e616ecdac934dd19313964 Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Wed, 4 Sep 2024 23:52:59 -0400 Subject: [PATCH] Enable unneeded_field_pattern lint --- src/lib.rs | 1 + src/reason.rs | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e8bb6ec3..2c09efc8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,7 @@ clippy::partial_pub_fields, clippy::std_instead_of_core, clippy::if_then_some_else_none, + clippy::unneeded_field_pattern, clippy::redundant_type_annotations )] #![expect( diff --git a/src/reason.rs b/src/reason.rs index b6bba4d7..850c6076 100644 --- a/src/reason.rs +++ b/src/reason.rs @@ -145,10 +145,7 @@ fn get_valid_steps( for config in configs.drain(..) { let Config { - state, - ref tape, - prev: _, - recs: _, + state, ref tape, .. } = config; if tape.blank() {