rust-vfs: add a TODO to remember a decision taken about naming
authorRaphaël Gomès <rgomes@octobus.net>
Thu, 17 Oct 2024 15:22:38 +0200
changeset 52161 46c68c0fe137
parent 52160 039b7caeb4d9
child 52162 f2eab4967bfc
rust-vfs: add a TODO to remember a decision taken about naming Explanations inline.
rust/hg-core/src/vfs.rs
--- a/rust/hg-core/src/vfs.rs	Wed Sep 25 18:24:15 2024 +0200
+++ b/rust/hg-core/src/vfs.rs	Thu Oct 17 15:22:38 2024 +0200
@@ -260,6 +260,7 @@
 /// Abstracts over the VFS to allow for different implementations of the
 /// filesystem layer (like passing one from Python).
 pub trait Vfs: Sync + Send + DynClone {
+    // TODO make `open` readonly and make `open_read` an `open_write`
     fn open(&self, filename: &Path) -> Result<std::fs::File, HgError>;
     fn open_read(&self, filename: &Path) -> Result<std::fs::File, HgError>;
     fn open_check_ambig(