Skip to content

Commit

Permalink
Ignore clippy::redundant_guards warning
Browse files Browse the repository at this point in the history
```
error: redundant guard
  --> tools/codegen/src/main.rs:91:24
   |
91 |                     if matches!(vis, syn::Visibility::Public(..)) =>
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
   = note: `-D clippy::redundant-guards` implied by `-D warnings`
help: try
   |
90 -                 syn::Item::Struct(syn::ItemStruct { vis, ident, fields, .. })
90 +                 syn::Item::Struct(syn::ItemStruct { vis: syn::Visibility::Public(..), ident, fields, .. }) =>
   |
```
  • Loading branch information
taiki-e committed Aug 2, 2023
1 parent 2e39fd0 commit 02fcf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/codegen/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![warn(rust_2018_idioms, single_use_lifetimes)]
#![allow(clippy::match_on_vec_items, clippy::needless_pass_by_value)]
#![allow(clippy::match_on_vec_items, clippy::needless_pass_by_value, clippy::redundant_guards)]

#[macro_use]
mod file;
Expand Down

0 comments on commit 02fcf01

Please sign in to comment.