remove extra borrow mut

This commit is contained in:
Pere Diaz Bou
2024-09-29 10:19:55 +02:00
parent f43e53a815
commit 5207e49399

View File

@@ -266,7 +266,6 @@ impl File for LinuxFile {
}
fn sync(&self, c: Rc<Completion>) -> Result<()> {
let mut io = self.io.borrow_mut();
let fd = io_uring::types::Fd(self.file.as_raw_fd());
let ptr = Rc::into_raw(c.clone());
let sync = io_uring::opcode::Fsync::new(fd)