Skip to content

Commit d9f4c3f

Browse files
authored
Fix CI (#75)
1 parent fbd4d00 commit d9f4c3f

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

.github/workflows/lint.yml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,44 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
matrix:
13-
- { channel: stable, features: "" }
14-
- { channel: stable, features: --features safe }
15-
- { channel: nightly, features: --features nightly }
16-
- { channel: stable, features: --features zeroize }
17-
- { channel: stable, features: --features zeroize-on-drop }
18-
- { channel: nightly, features: --features safe,nightly }
19-
- { channel: stable, features: --features safe,zeroize }
20-
- { channel: stable, features: --features safe,zeroize-on-drop }
21-
- { channel: nightly, features: --features nightly,zeroize }
22-
- { channel: nightly, features: --features nightly,zeroize-on-drop }
23-
- { channel: nightly, features: --all-features }
12+
include:
13+
- channel: stable
14+
features: ""
15+
- channel: stable
16+
features: --features safe
17+
- channel: nightly
18+
features: --features nightly
19+
- channel: stable
20+
features: --features zeroize
21+
- channel: stable
22+
features: --features zeroize-on-drop
23+
- channel: nightly
24+
features: --features safe,nightly
25+
- channel: stable
26+
features: --features safe,zeroize
27+
- channel: stable
28+
features: --features safe,zeroize-on-drop
29+
- channel: nightly
30+
features: --features nightly,zeroize
31+
- channel: nightly
32+
features: --features nightly,zeroize-on-drop
33+
- channel: nightly
34+
features: --all-features
2435

2536
runs-on: ubuntu-latest
2637

2738
steps:
2839
- name: Update Rust
2940
run: |
30-
rustup toolchain install ${{ matrix.matrix.channel }} --profile minimal --component clippy --allow-downgrade
31-
rustup default ${{ matrix.matrix.channel }}
41+
rustup toolchain install ${{ matrix.channel }} --profile minimal --component clippy --allow-downgrade
42+
rustup default ${{ matrix.channel }}
3243
- name: Checkout
3344
uses: actions/checkout@v3
3445
- name: Run Clippy
3546
run:
36-
cargo clippy --all-targets --workspace ${{ matrix.matrix.features }} -- -D warnings
47+
cargo clippy --all-targets --workspace ${{ matrix.features }} -- -D warnings
3748
- name: Run Rustdoc
3849
env:
3950
RUSTDOCFLAGS: -D warnings
4051
run:
41-
cargo doc --no-deps --document-private-items --workspace ${{ matrix.matrix.features }}
52+
cargo doc --no-deps --document-private-items --workspace ${{ matrix.features }}

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
)]
77
#![allow(clippy::tabs_in_doc_comments)]
88
#![warn(clippy::cargo, clippy::missing_docs_in_private_items)]
9+
#![cfg_attr(feature = "nightly", allow(clippy::implied_bounds_in_impls))]
910
#![cfg_attr(doc, allow(unknown_lints), warn(rustdoc::all))]
1011

1112
//! # Description

0 commit comments

Comments
 (0)