Fix clippy warnings and remove self casts

This commit is contained in:
PThorpe92
2025-08-25 20:30:07 -04:00
parent 0a56d23402
commit a0e5536360
4 changed files with 8 additions and 11 deletions

View File

@@ -434,7 +434,7 @@ fn write_at(io: &impl IO, file: Arc<dyn File>, offset: usize, data: &[u8]) {
// reference the buffer to keep alive for async io
let _buf = _buf.clone();
});
let result = file.pwrite(offset, buffer, completion).unwrap();
let result = file.pwrite(offset as u64, buffer, completion).unwrap();
while !result.is_completed() {
io.run_once().unwrap();
}