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)]