From 1638005af758175a3eafc02e609b35eeff43e1fb Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Mon, 22 Jan 2024 15:40:33 -0800 Subject: [PATCH] refactor: allow exception for clippy::pub_underscore_fields in generated code (#77) --- crates/wdk-sys/src/types.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/wdk-sys/src/types.rs b/crates/wdk-sys/src/types.rs index ea96403e..46242715 100644 --- a/crates/wdk-sys/src/types.rs +++ b/crates/wdk-sys/src/types.rs @@ -31,6 +31,13 @@ #[allow(clippy::must_use_candidate)] #[allow(clippy::not_unsafe_ptr_arg_deref)] #[allow(clippy::ptr_as_ptr)] +#[rustversion::attr( + any( + all(not(nightly), since(1.77)), + all(nightly, since(2024-01-11)), + ), + allow(clippy::pub_underscore_fields) +)] #[allow(clippy::semicolon_if_nothing_returned)] #[allow(clippy::too_many_arguments)] #[allow(clippy::too_many_lines)]