Remove the as_any_ref() function for trait

This commit is contained in:
LI Qing
2023-05-25 10:36:18 +08:00
committed by Tate, Hongliang Tian
parent 902b0421c3
commit b34dc85e7e
15 changed files with 4 additions and 78 deletions

View File

@ -1,5 +1,3 @@
use alloc::string::{String, ToString};
use core::any::Any;
use core::sync::atomic::{AtomicUsize, Ordering};
use crate::events::Observer;
@ -66,10 +64,6 @@ impl FileSystem for ProcFS {
fn flags(&self) -> FsFlags {
FsFlags::NO_PAGECACHE
}
fn as_any_ref(&self) -> &dyn Any {
self
}
}
/// Represents the inode at `/proc`.