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)]`
```
This commit is contained in:
Taiki Endo
2024-08-26 23:47:54 +09:00
parent f172798ba0
commit 7ea7a2c18f

View File

@@ -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());