From 7334cd9b382a8d6743ae76e30e145ea7da8571a4 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 5 Mar 2024 03:27:50 +0900 Subject: [PATCH] Ignore more lints at workspace level --- Cargo.toml | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2187b07..4d7418f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,6 @@ members = [ [workspace.lints.rust] improper_ctypes = "warn" improper_ctypes_definitions = "warn" -missing_debug_implementations = "warn" non_ascii_idents = "warn" rust_2018_idioms = "warn" single_use_lifetimes = "warn" @@ -61,6 +60,7 @@ undocumented_unsafe_blocks = "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 +declare_interior_mutable_const = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7665 doc_markdown = { level = "allow", priority = 1 } float_cmp = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/7725 manual_assert = { level = "allow", priority = 1 } diff --git a/src/lib.rs b/src/lib.rs index 7ef1118..77c2636 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -125,6 +125,7 @@ pin-project supports this. // #![warn(unsafe_op_in_unsafe_fn)] // requires Rust 1.52 #![warn( // Lints that may help when writing public library. + missing_debug_implementations, missing_docs, clippy::alloc_instead_of_core, clippy::exhaustive_enums,