From 39e42c86912dd2ef4a9b63f00e62ca2c1f455345 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sun, 14 Jul 2024 11:20:46 +0800 Subject: [PATCH] remove outdated clippy allows Signed-off-by: Jay Lee --- jemalloc-ctl/src/error.rs | 4 ---- jemalloc-ctl/src/lib.rs | 1 - jemalloc-sys/src/lib.rs | 4 ---- 3 files changed, 9 deletions(-) diff --git a/jemalloc-ctl/src/error.rs b/jemalloc-ctl/src/error.rs index 46f792514..168744d62 100644 --- a/jemalloc-ctl/src/error.rs +++ b/jemalloc-ctl/src/error.rs @@ -1,8 +1,4 @@ //! Error type -#![cfg_attr( - feature = "cargo-clippy", - allow(clippy::cast_sign_loss, clippy::cast_possible_wrap) -)] use crate::{fmt, num, result}; use libc::c_int; diff --git a/jemalloc-ctl/src/lib.rs b/jemalloc-ctl/src/lib.rs index c5aea8ad7..e0abb991b 100644 --- a/jemalloc-ctl/src/lib.rs +++ b/jemalloc-ctl/src/lib.rs @@ -68,7 +68,6 @@ #![allow(renamed_and_removed_lints)] #![deny(missing_docs, broken_intra_doc_links)] #![cfg_attr(not(feature = "use_std"), no_std)] -#![cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))] #[cfg(test)] #[global_allocator] diff --git a/jemalloc-sys/src/lib.rs b/jemalloc-sys/src/lib.rs index 5ad550772..79096a0f8 100644 --- a/jemalloc-sys/src/lib.rs +++ b/jemalloc-sys/src/lib.rs @@ -41,10 +41,6 @@ //! [jemalloc_mallctl]: http://jemalloc.net/jemalloc.3.html#mallctl_namespace #![no_std] #![allow(non_snake_case, non_camel_case_types)] -#![cfg_attr( - feature = "cargo-clippy", - allow(clippy::cast_possible_truncation, clippy::cast_possible_wrap) -)] // TODO: rename the following lint on next minor bump #![allow(renamed_and_removed_lints)] #![deny(missing_docs, broken_intra_doc_links)]