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 (#127)

Signed-off-by: Melvin Wang <[email protected]>
  • Loading branch information
wmmc88 authored Apr 3, 2024
1 parent 45811e3 commit 6410897
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install Cargo Expand
uses: taiki-e/install-action@v2
with:
tool: cargo-expand
tool: cargo-expand@1.0.80

- name: Run Cargo Test
run: cargo +${{ matrix.rust_toolchain }} test --locked --profile ${{ matrix.cargo_profile }} --target ${{ matrix.target_triple }}
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ That's it! Thank you for your contribution!
The following tools should be installed as a part of the `windows-drivers-rs` developer workflow:
* `cargo-expand`: `cargo install --locked cargo-expand`
* `cargo-expand`: `cargo install --locked cargo-expand --version 1.0.80`
* `cargo-audit`: `cargo install --locked cargo-audit`
* `cargo-udeps`: `cargo install --locked cargo-udeps`
* `taplo-cli`: `cargo install --locked taplo-cli`
Expand Down
3 changes: 3 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ success = rm -r ${CARGO_MAKE_CRATE_CUSTOM_TRIPLE_TARGET_DIRECTORY}/tests
assert ${success} "Failed to delete tests directory"
'''

[tasks.test]
install_crate = { crate_name = "cargo-expand", version = "1.0.80" }

[tasks.audit]
args = ["audit", "--deny", "warnings"]

Expand Down
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 6410897

Please sign in to comment.