diff --git a/src/object_safe.rs b/src/object_safe.rs index 258c20654..e347ccdc1 100644 --- a/src/object_safe.rs +++ b/src/object_safe.rs @@ -218,7 +218,7 @@ impl DynFilesystem for Filesystem<'_, S> { } impl dyn DynFilesystem + '_ { - pub fn read_file(&self, path: &Path) -> Result> { + pub fn read(&self, path: &Path) -> Result> { let mut contents = Vec::new(); self.open_file_and_then(path, &mut |file| { file.read_to_end(&mut contents)?; @@ -227,7 +227,7 @@ impl dyn DynFilesystem + '_ { Ok(contents) } - pub fn read_file_chunk( + pub fn read_chunk( &self, path: &Path, pos: OpenSeekFrom,