Skip to content

Commit

Permalink
Enable unneeded_field_pattern lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Sep 5, 2024
1 parent 02dd100 commit d750922
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 1 addition & 4 deletions src/reason.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d750922

Please sign in to comment.