fix warnings

Signed-off-by: Alex Chi <iskyzh@gmail.com>
This commit is contained in:
Alex Chi
2024-01-19 17:44:38 +08:00
parent bb535aec75
commit cfa7c0c2af
5 changed files with 5 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ impl Wal {
buf.put_slice(key);
buf.put_u16(value.len() as u16);
buf.put_slice(value);
file.write(&buf)?;
file.write_all(&buf)?;
Ok(())
}