From 7ea7a2c18fcc2b683d2ea631dc517edf6e01e1bb Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 26 Aug 2024 23:47:54 +0900 Subject: [PATCH] Ignore clippy::too_long_first_doc_paragraph lint ``` error: first doc comment paragraph is too long --> tools/codegen/src/lib.rs:314:1 | 314 | / /// GitHub Actions Runner supports Linux (x86_64, aarch64, arm), Windows (x86_64, aarch64), 315 | | /// and macOS (x86_64, aarch64). 316 | | /// https://github.com/actions/runner/blob/v2.315.0/.github/workflows/build.yml#L21 317 | | /// https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#supported-architectures-and-operating-systems-f... 318 | | /// 319 | | /// Note: | |_ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph = note: `-D clippy::too-long-first-doc-paragraph` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::too_long_first_doc_paragraph)]` ``` --- tools/codegen/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/codegen/src/lib.rs b/tools/codegen/src/lib.rs index aac04603..2ec5ece2 100644 --- a/tools/codegen/src/lib.rs +++ b/tools/codegen/src/lib.rs @@ -1,5 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 OR MIT +#![allow(clippy::missing_panics_doc, clippy::too_long_first_doc_paragraph)] + use std::{ cmp::{self, Reverse}, collections::BTreeMap, @@ -244,8 +246,6 @@ pub struct BaseManifest { } impl BaseManifest { /// Validate the manifest. - // The panic is an assert - #[allow(clippy::missing_panics_doc)] pub fn validate(&self) { for bin in self.bin.iter().chain(self.platform.values().flat_map(|m| &m.bin)) { assert!(!bin.as_slice().is_empty());