diff --git a/Cargo.toml b/Cargo.toml index 05025015..6625fcc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,7 @@ inline_asm_x86_att_syntax = "warn" trailing_empty_array = "warn" transmute_undefined_repr = "warn" undocumented_unsafe_blocks = "warn" +unused_trait_names = "warn" # Suppress buggy or noisy clippy lints bool_assert_comparison = { level = "allow", priority = 1 } borrow_as_ptr = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/8286 diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index 4a731541..a804b803 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -5,7 +5,7 @@ use std::{ collections::{BTreeMap, BTreeSet}, env, ffi::OsStr, - io::Read, + io::Read as _, path::Path, sync::{LazyLock, RwLock}, time::Duration, @@ -17,7 +17,7 @@ use install_action_internal_codegen::{ workspace_root, BaseManifest, HostPlatform, Manifest, ManifestDownloadInfo, ManifestRef, ManifestTemplate, ManifestTemplateDownloadInfo, Manifests, Signing, SigningKind, Version, }; -use sha2::{Digest, Sha256}; +use sha2::{Digest as _, Sha256}; use spdx::expression::{ExprNode, ExpressionReq, Operator}; fn main() -> Result<()> { diff --git a/tools/codegen/src/tools-markdown.rs b/tools/codegen/src/tools-markdown.rs index b7f25e2d..fa6409b2 100644 --- a/tools/codegen/src/tools-markdown.rs +++ b/tools/codegen/src/tools-markdown.rs @@ -1,6 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 OR MIT -use std::{env, fmt, io::Write, path::PathBuf}; +use std::{env, fmt, io::Write as _, path::PathBuf}; use anyhow::Result; use fs_err as fs;