Conversation
|
Oh these issues are with generated files! |
|
@hawkw should I have clippy ignore the generated files? |
yeah, probably...that's annoying. :| |
|
Done. |
|
Alright, it looks to be passing CI. Is squashing enabled for this repo? |
hawkw
left a comment
There was a problem hiding this comment.
i'm fine with merging this as-is in order to fix CI, but if you don't mind, it might be nice to change the blanket allow for the whole console-api crate so that it doesn't include the human-written code in console_api::common.
console-api/src/lib.rs
Outdated
| @@ -1,4 +1,5 @@ | |||
| #![doc = include_str!("../README.md")] | |||
| #![allow(warnings)] | |||
There was a problem hiding this comment.
hmm, could we, instead, add the attribute only to the modules that are generated by prost? the common module also contains some handwritten code:
console/console-api/src/common.rs
Lines 5 to 240 in ff6d048
common, like this:
// in `common.rs`
mod generated {
#![allow(warnings)]
include!("generated/rs.tokio.console.common.rs");
}
pub use self::generated::*;
// ...for the other modules, we can just put the #[allow(warnings)] attribute on the declaration of those modules.
03d4e8f to
cb6f387
Compare
|
squashed |
|
@hawkw I don't have merge permissions for this repo, so you'll have to do it. |
|
Thanks! |
Needed for #374. This configures clippy to ignore most of the generated code in `console-api`.
Needed for #374.