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

@@ -25,7 +25,7 @@ impl VfsWatcher {
pub fn start(mut self) {
let outer_vfs = self.vfs.lock().unwrap();
for (partition_name, root_path) in &outer_vfs.partitions {
for (partition_name, root_path) in outer_vfs.get_partitions() {
let (tx, rx) = mpsc::channel();
let partition_name = partition_name.clone();
let root_path = root_path.clone();