Skip to content

Commit 41d3d82

Browse files
Fix clippy beta warning
A new clippy check is on by default in the beta channel, `incorrect_clone_impl_on_copy_type`. The generated code from bindgen does not conform to this. Suppressed this warning from happening during CI builds.
1 parent 0d29df5 commit 41d3d82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
toolchain: ${{ matrix.rust }}
7676
components: clippy
7777
- uses: r7kamura/rust-problem-matchers@v1
78-
- run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings
78+
- run: cargo +${{ matrix.rust }} clippy --all --all-features -- -D warnings `${{ matrix.rust == 'beta' }} && echo "-Aclippy::incorrect_clone_impl_on_copy_type"`
7979

8080
build:
8181
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)