mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 17:33:23 +00:00
Use #[expect(lint)]
, not #[allow(lint)]
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
1899646391
commit
0dca168717
@ -5,7 +5,7 @@
|
||||
#![feature(let_chains)]
|
||||
#![feature(negative_impls)]
|
||||
#![feature(slice_as_chunks)]
|
||||
#![allow(dead_code, unused_imports)]
|
||||
#![expect(dead_code, unused_imports)]
|
||||
|
||||
mod error;
|
||||
mod layers;
|
||||
|
@ -21,7 +21,7 @@ use crate::{
|
||||
};
|
||||
|
||||
/// A transaction provider.
|
||||
#[allow(clippy::type_complexity)]
|
||||
#[expect(clippy::type_complexity)]
|
||||
pub struct TxProvider {
|
||||
id: u64,
|
||||
initializer_map: RwLock<HashMap<TypeId, Box<dyn Any + Send + Sync>>>,
|
||||
|
@ -40,7 +40,7 @@ use crate::prelude::*;
|
||||
/// // The deletion operation will be carried out when it is dropped
|
||||
/// drop(lazy_delete_u32);
|
||||
/// ```
|
||||
#[allow(clippy::type_complexity)]
|
||||
#[expect(clippy::type_complexity)]
|
||||
pub struct LazyDelete<T> {
|
||||
obj: T,
|
||||
is_deleted: AtomicBool,
|
||||
|
Reference in New Issue
Block a user