From e84811281484f7cdf6f438b9ace7b5989afc7681 Mon Sep 17 00:00:00 2001 From: Melvin Wang Date: Tue, 19 Mar 2024 14:37:24 -0700 Subject: [PATCH] refactor: change version bounds for `manual_c_str_literals` and `ref_as_ptr` clippy lints --- crates/wdk-sys/src/constants.rs | 3 ++- crates/wdk-sys/src/types.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/wdk-sys/src/constants.rs b/crates/wdk-sys/src/constants.rs index 6bbee5b5..b84668c3 100644 --- a/crates/wdk-sys/src/constants.rs +++ b/crates/wdk-sys/src/constants.rs @@ -8,9 +8,10 @@ use crate::types::{NTSTATUS, POOL_FLAGS, PVOID, PWDF_OBJECT_ATTRIBUTES}; #[allow(non_upper_case_globals)] #[rustversion::attr( any( - all(not(nightly), since(1.79)), + all(not(nightly), since(1.78)), all(nightly, since(2024-02-09)), ), + // required until following issue is resolved: https://github.com/rust-lang/rust-bindgen/issues/2710 allow(clippy::manual_c_str_literals) )] #[allow(clippy::unreadable_literal)] diff --git a/crates/wdk-sys/src/types.rs b/crates/wdk-sys/src/types.rs index bcc3616b..6f0536e2 100644 --- a/crates/wdk-sys/src/types.rs +++ b/crates/wdk-sys/src/types.rs @@ -40,7 +40,7 @@ )] #[rustversion::attr( any( - all(not(nightly), since(1.79)), + all(not(nightly), since(1.78)), all(nightly, since(2024-02-09)), ), allow(clippy::ref_as_ptr)