From e69b05781f7fb0f0dfdcd4acb433dbcde9cbb7b7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 18 Dec 2018 13:35:05 +0300 Subject: add io::Task --- crates/ra_vfs/src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crates/ra_vfs/src/lib.rs') diff --git a/crates/ra_vfs/src/lib.rs b/crates/ra_vfs/src/lib.rs index d4ba2cb45..8ce6b6ee0 100644 --- a/crates/ra_vfs/src/lib.rs +++ b/crates/ra_vfs/src/lib.rs @@ -2,8 +2,8 @@ //! //! When doing analysis, we don't want to do any IO, we want to keep all source //! code in memory. However, the actual source code is stored on disk, so you -//! need to get it into the memory in the first place somehow. VFS is the //! component which does this. +//! need to get it into the memory in the first place somehow. VFS is the //! //! It also is responsible for watching the disk for changes, and for merging //! editor state (modified, unsaved files) with disk state. @@ -23,11 +23,10 @@ use std::{ }; use relative_path::RelativePathBuf; -use thread_worker::{WorkerHandle, Worker}; +use thread_worker::{WorkerHandle}; use crate::{ arena::{ArenaId, Arena}, - io::{FileEvent, FsWorker}, }; /// `RootFilter` is a predicate that checks if a file can belong to a root. If @@ -87,7 +86,7 @@ struct Vfs { roots: Arena, files: Arena, // pending_changes: Vec, - worker: FsWorker, + worker: io::Worker, worker_handle: WorkerHandle, } -- cgit v1.2.3