Skip to content

Commit

Permalink
refactor: add lint exceptions for clippy::manual_c_str_literals and c…
Browse files Browse the repository at this point in the history
…lippy::ref_as_ptr (#108)
  • Loading branch information
wmmc88 authored Feb 16, 2024
1 parent d9fcaa2 commit d0e4208
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wdk-build/src/cargo_make.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ fn configure_wdf_build_output_dir(target_arg: &Option<String>, cargo_make_cargo_
output_dir += "/debug";
} else {
output_dir += "/";
output_dir += &cargo_make_cargo_profile;
output_dir += cargo_make_cargo_profile;
}

output_dir
Expand Down
7 changes: 7 additions & 0 deletions crates/wdk-sys/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
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(nightly, since(2024-02-09)),
),
allow(clippy::manual_c_str_literals)
)]
#[allow(clippy::unreadable_literal)]
mod bindings {
// allow wildcards for types module since underlying c code relies on all
Expand Down
7 changes: 7 additions & 0 deletions crates/wdk-sys/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
),
allow(clippy::pub_underscore_fields)
)]
#[rustversion::attr(
any(
all(not(nightly), since(1.79)),
all(nightly, since(2024-02-09)),
),
allow(clippy::ref_as_ptr)
)]
#[allow(clippy::semicolon_if_nothing_returned)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::too_many_lines)]
Expand Down

0 comments on commit d0e4208

Please sign in to comment.