Skip to content

Commit 9863827

Browse files
committed
Correct impls for updating files.
1 parent 36ae5b5 commit 9863827

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/filesystem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub trait FileSystem: Debug + Sync + Send + 'static {
7070

7171
/// Opens the file at this path for reading and writing
7272
fn update_file(&self, _path: &str) -> VfsResult<Box<dyn SeekAndReadAndWrite>> {
73-
Err(VfsError::NotSupported)
73+
Err(VfsErrorKind::NotSupported.into())
7474
}
7575
}
7676

src/impls/embedded.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ where
106106
}
107107
}
108108

109-
fn update_file(&self, _path: &str) -> VfsResult<Box<dyn crate::SeekAndReadAndWrite>> {
110-
Err(VfsErrorKind::NotSupported)
111-
}
112-
113109
fn create_file(&self, _path: &str) -> VfsResult<Box<dyn Write>> {
114110
Err(VfsErrorKind::NotSupported.into())
115111
}

0 commit comments

Comments
 (0)