From 1c9df58440b92efbcc400e152554b28d8f27191b Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Wed, 28 Jun 2023 15:20:43 +0300 Subject: [PATCH] net_gen: Use more specific clippy lint controls Remove clippy:all and update it with correct clippy lint, so that it gives proper information. Signed-off-by: Ravi kumar Veeramally --- net_gen/src/if_tun.rs | 1 + net_gen/src/iff.rs | 1 + net_gen/src/lib.rs | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net_gen/src/if_tun.rs b/net_gen/src/if_tun.rs index c80a5d666..ab9f327b9 100644 --- a/net_gen/src/if_tun.rs +++ b/net_gen/src/if_tun.rs @@ -10,6 +10,7 @@ #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::std::marker::PhantomData, [T; 0]); +#[allow(clippy::missing_safety_doc)] impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { diff --git a/net_gen/src/iff.rs b/net_gen/src/iff.rs index f327b66d0..974e01b42 100644 --- a/net_gen/src/iff.rs +++ b/net_gen/src/iff.rs @@ -10,6 +10,7 @@ #[repr(C)] #[derive(Default)] pub struct __IncompleteArrayField(::std::marker::PhantomData, [T; 0]); +#[allow(clippy::missing_safety_doc)] impl __IncompleteArrayField { #[inline] pub const fn new() -> Self { diff --git a/net_gen/src/lib.rs b/net_gen/src/lib.rs index 7d0be174a..c4e90faf5 100644 --- a/net_gen/src/lib.rs +++ b/net_gen/src/lib.rs @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. -#![allow(clippy::all)] #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)]