summaryrefslogtreecommitdiff
path: root/ext/fs/in_memory_fs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fs/in_memory_fs.rs')
-rw-r--r--ext/fs/in_memory_fs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/fs/in_memory_fs.rs b/ext/fs/in_memory_fs.rs
index 269202386..e29b9d50c 100644
--- a/ext/fs/in_memory_fs.rs
+++ b/ext/fs/in_memory_fs.rs
@@ -44,7 +44,7 @@ impl InMemoryFs {
pub fn setup_text_files(&self, files: Vec<(String, String)>) {
for (path, text) in files {
let path = PathBuf::from(path);
- self.mkdir_sync(path.parent().unwrap(), true, 0).unwrap();
+ self.mkdir_sync(path.parent().unwrap(), true, None).unwrap();
self
.write_file_sync(
&path,
@@ -101,7 +101,7 @@ impl FileSystem for InMemoryFs {
&self,
path: &Path,
recursive: bool,
- _mode: u32,
+ _mode: Option<u32>,
) -> FsResult<()> {
let path = normalize_path(path);
@@ -119,7 +119,7 @@ impl FileSystem for InMemoryFs {
},
None => {
if recursive {
- self.mkdir_sync(parent, true, 0)?;
+ self.mkdir_sync(parent, true, None)?;
} else {
return Err(FsError::Io(Error::new(
ErrorKind::NotFound,
@@ -149,7 +149,7 @@ impl FileSystem for InMemoryFs {
&self,
path: PathBuf,
recursive: bool,
- mode: u32,
+ mode: Option<u32>,
) -> FsResult<()> {
self.mkdir_sync(&path, recursive, mode)
}