mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add type alias
This commit is contained in:
parent
2ae05a6163
commit
99561cf2f2
2 changed files with 8 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue