move close in fd trait

Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
juju committed 2022-12-25 16:53:48 +01:00
1 parent eb5a3a6635
commit 23184f56a3
5 files changed
+10 -14

No files matched your search

+1 -5
View File
@@ -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());
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.