From 35ccb3f549221782b7035474b2243a8fe419a045 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 8 Oct 2022 12:23:35 -0700 Subject: [PATCH] Run clippy on all crates in workspace --- .github/workflows/ci.yml | 2 +- diagram/src/main.rs | 2 ++ generate/src/main.rs | 12 +++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ace6a89..06e331e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@clippy - - run: cargo clippy --tests --benches -- -Dclippy::all -Dclippy::pedantic + - run: cargo clippy --tests --benches --workspace -- -Dclippy::all -Dclippy::pedantic outdated: name: Outdated diff --git a/diagram/src/main.rs b/diagram/src/main.rs index 3afa7d2..83100df 100644 --- a/diagram/src/main.rs +++ b/diagram/src/main.rs @@ -1,3 +1,5 @@ +#![allow(clippy::type_complexity, clippy::uninlined_format_args)] + use image::{ImageBuffer, Rgb}; use std::process; diff --git a/generate/src/main.rs b/generate/src/main.rs index 546870f..d92932a 100644 --- a/generate/src/main.rs +++ b/generate/src/main.rs @@ -8,8 +8,18 @@ // $ ucd-generate property-bool UCD --include XID_Start,XID_Continue --trie-set > tests/trie/trie.rs // $ cargo run --manifest-path generate/Cargo.toml +#![allow( + clippy::cast_lossless, + clippy::cast_possible_truncation, + clippy::match_wild_err_arm, + clippy::redundant_closure_for_method_calls, + clippy::too_many_lines, + clippy::uninlined_format_args, + clippy::unreadable_literal +)] + #[rustfmt::skip] -#[allow(dead_code)] +#[allow(dead_code, clippy::all)] mod ucd; mod output;