Skip to content

Commit 1f5cd6f

Browse files
committed
Update ci.yml
1 parent 2a5c8d9 commit 1f5cd6f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

+13
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,19 @@ jobs:
7676
args: --all -- --check
7777

7878
- name: Run cargo clippy
79+
if: matrix.toolchain == 'beta'
80+
uses: actions-rs/cargo@v1
81+
with:
82+
command: clippy
83+
# As `return_self_not_must_use` became `pedantic` in the 1.60.0-nightly channel,
84+
# we allow the warning to avoid unnecessary code fixes.
85+
# See: https://github.com/rust-lang/rust-clippy/issues/8197
86+
#
87+
# TODO: Remove this branch once stable-1.59.0 is released.
88+
args: --all-features --all -- -D warnings --allow clippy::return_self_not_must_use
89+
90+
- name: Run cargo clippy
91+
if: matrix.toolchain != 'beta'
7992
uses: actions-rs/cargo@v1
8093
with:
8194
command: clippy

0 commit comments

Comments
 (0)