move close in fd trait
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
1 parent
eb5a3a6635
commit
23184f56a3
5 files changed
+10
-14
No files matched your search
+1
-5
@@ -2,7 +2,7 @@ mod fd;
|
||||
pub mod iso9660;
|
||||
|
||||
use crate::drivers::atapi::read_block;
|
||||
use crate::fd::{FDt, FD_TABLE};
|
||||
use crate::fd::{FDt};
|
||||
use crate::utils::unserialize;
|
||||
|
||||
use super::FileSystem;
|
||||
@@ -74,10 +74,6 @@ impl FileSystem for IsoFS {
|
||||
|
||||
Some(IsoFD::new(curr_entry).await)
|
||||
}
|
||||
|
||||
async fn close(&mut self, fd: FDt) {
|
||||
FD_TABLE.lock().await.unregister_fd(fd.clone());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||