diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_cargo_watch/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs index 76fdc0031..7f4c9280c 100644 --- a/crates/ra_cargo_watch/src/lib.rs +++ b/crates/ra_cargo_watch/src/lib.rs | |||
@@ -51,7 +51,7 @@ impl CheckWatcher { | |||
51 | let (task_send, task_recv) = unbounded::<CheckTask>(); | 51 | let (task_send, task_recv) = unbounded::<CheckTask>(); |
52 | let (cmd_send, cmd_recv) = unbounded::<CheckCommand>(); | 52 | let (cmd_send, cmd_recv) = unbounded::<CheckCommand>(); |
53 | let handle = std::thread::spawn(move || { | 53 | let handle = std::thread::spawn(move || { |
54 | let mut check = CheckWatcherState::new(options, workspace_root); | 54 | let mut check = CheckWatcherThread::new(options, workspace_root); |
55 | check.run(&task_send, &cmd_recv); | 55 | check.run(&task_send, &cmd_recv); |
56 | }); | 56 | }); |
57 | CheckWatcher { task_recv, cmd_send: Some(cmd_send), handle: Some(handle), state } | 57 | CheckWatcher { task_recv, cmd_send: Some(cmd_send), handle: Some(handle), state } |
@@ -175,16 +175,16 @@ pub enum CheckCommand { | |||
175 | Update, | 175 | Update, |
176 | } | 176 | } |
177 | 177 | ||
178 | struct CheckWatcherState { | 178 | struct CheckWatcherThread { |
179 | options: CheckOptions, | 179 | options: CheckOptions, |
180 | workspace_root: PathBuf, | 180 | workspace_root: PathBuf, |
181 | watcher: WatchThread, | 181 | watcher: WatchThread, |
182 | last_update_req: Option<Instant>, | 182 | last_update_req: Option<Instant>, |
183 | } | 183 | } |
184 | 184 | ||
185 | impl CheckWatcherState { | 185 | impl CheckWatcherThread { |
186 | fn new(options: CheckOptions, workspace_root: PathBuf) -> CheckWatcherState { | 186 | fn new(options: CheckOptions, workspace_root: PathBuf) -> CheckWatcherThread { |
187 | CheckWatcherState { | 187 | CheckWatcherThread { |
188 | options, | 188 | options, |
189 | workspace_root, | 189 | workspace_root, |
190 | watcher: WatchThread::dummy(), | 190 | watcher: WatchThread::dummy(), |