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 <ravikumar.veeramally@intel.com>
This commit is contained in:
Ravi kumar Veeramally 2023-06-28 15:20:43 +03:00 committed by Rob Bradford
parent 1917e86206
commit 1c9df58440
3 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#[repr(C)] #[repr(C)]
#[derive(Default)] #[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]); pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
#[allow(clippy::missing_safety_doc)]
impl<T> __IncompleteArrayField<T> { impl<T> __IncompleteArrayField<T> {
#[inline] #[inline]
pub const fn new() -> Self { pub const fn new() -> Self {

View File

@ -10,6 +10,7 @@
#[repr(C)] #[repr(C)]
#[derive(Default)] #[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]); pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
#[allow(clippy::missing_safety_doc)]
impl<T> __IncompleteArrayField<T> { impl<T> __IncompleteArrayField<T> {
#[inline] #[inline]
pub const fn new() -> Self { pub const fn new() -> Self {

View File

@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the THIRD-PARTY file. // found in the THIRD-PARTY file.
#![allow(clippy::all)]
#![allow(non_upper_case_globals)] #![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![allow(non_snake_case)] #![allow(non_snake_case)]