mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-06 17:54:20 +01:00
Merge 'Minor clippy fixes for windows platform' from Vrishabh
Just fixes a few clippy errors on the windows platform Closes #591
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::{Completion, File, LimboError, OpenFlags, Result, WriteCompletion, IO};
|
||||
use crate::{Completion, File, LimboError, OpenFlags, Result, IO};
|
||||
use log::trace;
|
||||
use std::cell::RefCell;
|
||||
use std::io::{Read, Seek, Write};
|
||||
@@ -85,8 +85,8 @@ impl File for WindowsFile {
|
||||
}
|
||||
|
||||
fn sync(&self, c: Rc<Completion>) -> Result<()> {
|
||||
let mut file = self.file.borrow_mut();
|
||||
file.sync_all().map_err(|err| LimboError::IOError(err))?;
|
||||
let file = self.file.borrow_mut();
|
||||
file.sync_all().map_err(LimboError::IOError)?;
|
||||
c.complete(0);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user