From 7e9de3b0c68f13b0576ae8b5725f351e6705447d Mon Sep 17 00:00:00 2001 From: j-devel <38098238+j-devel@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:24:37 +0700 Subject: [PATCH] ci.sh: Get `cargo clippy` to work, workaround `clippy::too_long_first_doc_paragraph` errors --- psa-crypto-sys/build.rs | 1 - psa-crypto-sys/src/lib.rs | 2 +- psa-crypto/src/lib.rs | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/psa-crypto-sys/build.rs b/psa-crypto-sys/build.rs index 28091d8..562c160 100644 --- a/psa-crypto-sys/build.rs +++ b/psa-crypto-sys/build.rs @@ -33,7 +33,6 @@ )] // This one is hard to avoid. #![allow(clippy::multiple_crate_versions)] -#![allow(clippy::redundant_feature_names)] //---- ^^ #[path = "minerva/config.rs"] diff --git a/psa-crypto-sys/src/lib.rs b/psa-crypto-sys/src/lib.rs index 3aae7f1..88d696c 100644 --- a/psa-crypto-sys/src/lib.rs +++ b/psa-crypto-sys/src/lib.rs @@ -7,12 +7,12 @@ //! You can find the API //! [here](https://developer.arm.com/architectures/security-architectures/platform-security-architecture/documentation). -#![cfg_attr(not(feature = "std"), no_std)] // This one is hard to avoid. #![allow(clippy::multiple_crate_versions)] #![allow(clippy::missing_safety_doc)] // Respect the C API case #![allow(non_snake_case)] +#![allow(clippy::too_long_first_doc_paragraph)] #[allow( non_snake_case, diff --git a/psa-crypto/src/lib.rs b/psa-crypto/src/lib.rs index 46e8acd..f1344b5 100644 --- a/psa-crypto/src/lib.rs +++ b/psa-crypto/src/lib.rs @@ -44,6 +44,7 @@ )] // This one is hard to avoid. #![allow(clippy::multiple_crate_versions)] +#![allow(clippy::too_long_first_doc_paragraph)] #[cfg(feature = "operations")] pub mod operations;