From 500462e0e3ac2cf6db36b1d0e2c5bc36ac1fa86b Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Wed, 3 Jan 2024 11:21:59 -0800 Subject: [PATCH] Remove unnecessary clippy override The clippy override `allow(deref_nullptr)` is no longer needed since the issue has been fixed from rust-bindgen [1]. [1] https://github.com/rust-lang/rust-bindgen/issues/1651 Signed-off-by: Bo Chen --- src/arm64/mod.rs | 2 -- src/x86_64/mod.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/arm64/mod.rs b/src/arm64/mod.rs index 75f9cce..a331b07 100644 --- a/src/arm64/mod.rs +++ b/src/arm64/mod.rs @@ -3,8 +3,6 @@ #[allow(clippy::all)] #[allow(clippy::undocumented_unsafe_blocks)] -// Keep this until https://github.com/rust-lang/rust-bindgen/issues/1651 is fixed. -#[cfg_attr(test, allow(deref_nullptr))] pub mod bindings; #[cfg(feature = "fam-wrappers")] pub mod fam_wrappers; diff --git a/src/x86_64/mod.rs b/src/x86_64/mod.rs index 0a71400..341ec3a 100644 --- a/src/x86_64/mod.rs +++ b/src/x86_64/mod.rs @@ -2,8 +2,6 @@ // SPDX-License-Identifier: Apache-2.0 #[allow(clippy::undocumented_unsafe_blocks)] #[allow(clippy::all)] -// Keep this until https://github.com/rust-lang/rust-bindgen/issues/1651 is fixed. -#[cfg_attr(test, allow(deref_nullptr))] pub mod bindings; #[cfg(feature = "fam-wrappers")] pub mod fam_wrappers;