From 5207e49399baef42613a3bb6ee070a7ee9569874 Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Sun, 29 Sep 2024 10:19:55 +0200 Subject: [PATCH] remove extra borrow mut --- core/io/linux.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/core/io/linux.rs b/core/io/linux.rs index 8e666d238..19fe62523 100644 --- a/core/io/linux.rs +++ b/core/io/linux.rs @@ -266,7 +266,6 @@ impl File for LinuxFile { } fn sync(&self, c: Rc) -> 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)