Skip to content

Commit

Permalink
Fixed Lint Workflow in CI
Browse files Browse the repository at this point in the history
Added More Clippy Checks
  • Loading branch information
Redfire75369 committed Oct 5, 2024
1 parent f6d66c2 commit 7c514be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Install Nightly Rust Toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt

- name: Install Stable Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Setup Dependencies
uses: ./.github/actions/setup
with:
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@ version = "0.58.0"
unsafe_op_in_unsafe_fn = "deny" # Expansion of thread_local has a #[deny]

[workspace.lints.clippy]
as_underscore = "forbid"
cast_lossless = "forbid"
cast_ptr_alignment = "forbid"
clone_on_ref_ptr = "forbid"
ptr_as_ptr = "forbid"
ptr_cast_constness = "forbid"
ref_as_ptr = "forbid"
transmute_ptr_to_ptr = "deny"

[profile.release]
lto = "fat"
Expand Down

0 comments on commit 7c514be

Please sign in to comment.