Skip to content

Commit

Permalink
refactor: change version bounds for manual_c_str_literals and `ref_…
Browse files Browse the repository at this point in the history
…as_ptr` clippy lints
  • Loading branch information
wmmc88 committed Mar 19, 2024
1 parent 45811e3 commit e848112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/wdk-sys/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion crates/wdk-sys/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e848112

Please sign in to comment.