diff options
Diffstat (limited to 'crates/ra_vfs/src/io.rs')
-rw-r--r-- | crates/ra_vfs/src/io.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_vfs/src/io.rs b/crates/ra_vfs/src/io.rs index 178c9beff..be400bae9 100644 --- a/crates/ra_vfs/src/io.rs +++ b/crates/ra_vfs/src/io.rs | |||
@@ -1,4 +1,5 @@ | |||
1 | use std::{ | 1 | use std::{ |
2 | fmt, | ||
2 | fs, | 3 | fs, |
3 | path::{Path, PathBuf}, | 4 | path::{Path, PathBuf}, |
4 | }; | 5 | }; |
@@ -20,6 +21,12 @@ pub struct TaskResult { | |||
20 | pub(crate) files: Vec<(RelativePathBuf, String)>, | 21 | pub(crate) files: Vec<(RelativePathBuf, String)>, |
21 | } | 22 | } |
22 | 23 | ||
24 | impl fmt::Debug for TaskResult { | ||
25 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
26 | f.write_str("TaskResult { ... }") | ||
27 | } | ||
28 | } | ||
29 | |||
23 | pub(crate) type Worker = thread_worker::Worker<Task, TaskResult>; | 30 | pub(crate) type Worker = thread_worker::Worker<Task, TaskResult>; |
24 | 31 | ||
25 | pub(crate) fn start() -> (Worker, WorkerHandle) { | 32 | pub(crate) fn start() -> (Worker, WorkerHandle) { |