Remove Any Trait of File

This commit is contained in:
Yifan Wu 2021-02-19 00:38:21 +08:00
parent 973797f10e
commit 1c1edc1d80
4 changed files with 1 additions and 17 deletions

View file

@ -5,7 +5,6 @@ use crate::mm::{
UserBuffer,
};
use crate::task::suspend_current_and_run_next;
use core::any::Any;
pub struct Pipe {
readable: bool,
@ -165,5 +164,4 @@ impl File for Pipe {
}
}
}
fn as_any_ref(&self) -> &dyn Any { self }
}