remove Debug dependency for INode

master
WangRunji 6 years ago
parent f42e2a95b3
commit 24a51faff2

@ -35,19 +35,6 @@ fn create_new_sfs() {
let _root = sfs.root_inode();
}
// #[test]
fn print_root() {
let sfs = _open_sample_file();
let root = sfs.root_inode();
println!("{:?}", root);
let files = root.list().unwrap();
println!("{:?}", files);
assert_eq!(files[3], root.get_entry(3).unwrap());
sfs.sync().unwrap();
}
#[test]
fn create_file() -> Result<()> {
let sfs = _create_new_sfs();

@ -10,7 +10,7 @@ pub trait Device: Send {
}
/// Abstract operations on a inode.
pub trait INode: Debug + Any + Sync + Send {
pub trait INode: Any + Sync + Send {
fn read_at(&self, offset: usize, buf: &mut [u8]) -> Result<usize>;
fn write_at(&self, offset: usize, buf: &[u8]) -> Result<usize>;
fn info(&self) -> Result<FileInfo>;

Loading…
Cancel
Save