From 37b1b56c781565cc18aa311f935ed27f0c2ad01c Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Wed, 11 Sep 2024 13:09:02 +0200 Subject: [PATCH] Run clippy with nightly toolchain Signed-off-by: Sascha Grunert --- .github/workflows/ci.yml | 7 +++++++ src/lib.rs | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b021db407..1e7ec29a43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,13 @@ jobs: ~/.cargo/git target key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }} + - name: Select Toolchain + uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + with: + toolchain: nightly + default: true + override: true + components: clippy, rustfmt - name: Clippy Lint run: cargo clippy --all --all-features -- -D warnings diff --git a/src/lib.rs b/src/lib.rs index 6c1990ef7f..e3dd0e35ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ #![deny(missing_docs, warnings)] #![doc = include_str!("../README.md")] +#![allow(clippy::too_long_first_doc_paragraph)] #[cfg(feature = "distribution")] pub mod distribution;