aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Lauridsen <[email protected]>2020-01-15 14:53:08 +0000
committerEmil Lauridsen <[email protected]>2020-01-15 14:53:08 +0000
commitade657cb668d843606f87601885927515e890954 (patch)
tree77da053930f8087cedd59c969c811bd31200afec
parent478ba65f8da6ffd4a3fea09c6a4a1f0fb92e1c85 (diff)
Tweak naming slightly
-rw-r--r--crates/ra_cargo_watch/src/lib.rs10
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
178struct CheckWatcherState { 178struct 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
185impl CheckWatcherState { 185impl 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(),