Open kaimast opened 4 years ago
Additionally there's a bunch of clippy warnings that get triggered by plex: clippy::redundant_closure_call clippy::unused_unit clippy::match_single_binding clippy::let_unit_value clippy::unit_arg
It seems like most recent Rust nightly introduced a linter for unused braces as well. So plex now generates a bunch of errors during normal compilation also.
I will try to look into this sometime this week.
I don't have this issue with rustc, but I do with clippy code linting. Defining your production rules causes clippy to show a bunch of warnings, but I just use an attribute to ignore them
For anyone who needs it, here are the following linting warnings I suppress.
#![allow(
clippy::type_complexity,
clippy::redundant_field_names,
clippy::ptr_arg,
clippy::redundant_closure_call,
clippy::enum_variant_names,
clippy::let_unit_value
)]
I started seeing these on the newest rust nightly
Adding
#![allow(unused_braces)]
tosrc/lib.rs
fixes it when compiling plex itself but not when using the macro in other projects (or the tests above).