Insulate VFS internals a little bit

This commit is contained in:
Lucien Greathouse
2018-01-03 18:13:49 -08:00
parent 78a1c658d8
commit 2df1dfa1cb
3 changed files with 19 additions and 7 deletions

View File

@@ -79,7 +79,7 @@ pub fn serve(project_path: &PathBuf, verbose: bool, port: Option<u64>) {
}
};
vfs.partitions.insert(name.clone(), path);
vfs.insert_partition(name, path);
}
Arc::new(Mutex::new(vfs))