mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-19 12:36:46 +00:00
Remove useless #[allow(lint)]
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b42d596ec4
commit
b415538097
@ -118,7 +118,6 @@ impl VirtioVsockHdr {
|
||||
|
||||
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, TryFromInt)]
|
||||
#[repr(u16)]
|
||||
#[allow(non_camel_case_types)]
|
||||
pub enum VirtioVsockOp {
|
||||
#[default]
|
||||
Invalid = 0,
|
||||
|
@ -7,7 +7,6 @@ use ostd::mm::{DmaCoherent, DmaStream, DmaStreamSlice, HasDaddr};
|
||||
///
|
||||
/// Any type implements this trait should also implements `HasDaddr` trait,
|
||||
/// and provides the exact length of DMA area.
|
||||
#[allow(clippy::len_without_is_empty)]
|
||||
pub trait DmaBuf: HasDaddr {
|
||||
/// The length of Dma area, in bytes
|
||||
fn len(&self) -> usize;
|
||||
|
Reference in New Issue
Block a user