-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings caused by plex macros #45
Comments
Additionally there's a bunch of clippy warnings that get triggered by plex: |
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).The text was updated successfully, but these errors were encountered: