Add type alias

This commit is contained in:
Aleksey Kladov 2018-12-18 13:23:23 +03:00
parent 2ae05a6163
commit 99561cf2f2
2 changed files with 8 additions and 4 deletions

View file

@ -19,7 +19,9 @@ pub enum FileEventKind {
Add(String),
}
pub fn start() -> (Worker<PathBuf, (PathBuf, Vec<FileEvent>)>, WorkerHandle) {
pub(crate) type FsWorker = Worker<PathBuf, (PathBuf, Vec<FileEvent>)>;
pub(crate) fn start() -> (FsWorker, WorkerHandle) {
thread_worker::spawn::<PathBuf, (PathBuf, Vec<FileEvent>), _>(
"vfs",
128,