-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add #[allow(dead_code)] and #[allow(non_camel_case_types)] to the generated code #15
Comments
I understand the issue with the The general problem is this: following Cargo's recommended method for generating code, I want to be able to use the |
simplify benchmark packed/none abstraction
I've also needed to add all of these to where I have the #![allow(dead_code)]
#![allow(unused_qualifications)]
#![allow(clippy::expl_impl_clone_on_copy)]
#![allow(clippy::must_use_candidate)]
#![allow(clippy::semicolon_if_nothing_returned)]
#![allow(clippy::uninlined_format_args)] |
The Rust issue linked has moved to rust-lang/rfcs#752 Since capnproto-rust generates files that mostly have a |
Updated list of all the lint exceptions I've needed: #![allow(clippy::as_conversions)]
#![allow(clippy::exhaustive_enums)]
#![allow(clippy::expl_impl_clone_on_copy)]
#![allow(clippy::match_same_arms)]
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::must_use_candidate)]
#![allow(clippy::renamed_function_params)]
#![allow(clippy::semicolon_if_nothing_returned)]
#![allow(clippy::uninlined_format_args)]
#![allow(clippy::unreadable_literal)]
#![allow(clippy::unwrap_used)]
#![allow(clippy::used_underscore_binding)]
#![allow(dead_code)]
#![allow(unused_qualifications)] |
Generated code produces a large amount of non_camel_case_types and dead_code warnings, it should be marked
allow
so thatrustc
doesn't complain.The text was updated successfully, but these errors were encountered: