read_at need not be public

This commit is contained in:
Christian Schwarz
2023-08-29 10:48:29 +02:00
parent e91e4d0b96
commit 5be0f9d69a

View File

@@ -427,7 +427,7 @@ impl VirtualFile {
Ok(())
}
pub fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize, Error> {
fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize, Error> {
let result = self.with_file("read", |file| file.read_at(buf, offset))?;
if let Ok(size) = result {
STORAGE_IO_SIZE