aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_cargo_watch/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_cargo_watch/src/lib.rs b/crates/ra_cargo_watch/src/lib.rs
index 78250f910..e5c22e599 100644
--- a/crates/ra_cargo_watch/src/lib.rs
+++ b/crates/ra_cargo_watch/src/lib.rs
@@ -36,8 +36,8 @@ pub struct CheckOptions {
36#[derive(Debug)] 36#[derive(Debug)]
37pub struct CheckWatcher { 37pub struct CheckWatcher {
38 pub task_recv: Receiver<CheckTask>, 38 pub task_recv: Receiver<CheckTask>,
39 pub cmd_send: Option<Sender<CheckCommand>>,
40 pub shared: Arc<RwLock<CheckWatcherSharedState>>, 39 pub shared: Arc<RwLock<CheckWatcherSharedState>>,
40 cmd_send: Option<Sender<CheckCommand>>,
41 handle: Option<JoinHandle<()>>, 41 handle: Option<JoinHandle<()>>,
42} 42}
43 43
@@ -171,7 +171,7 @@ struct CheckWatcherState {
171} 171}
172 172
173impl CheckWatcherState { 173impl CheckWatcherState {
174 pub fn new( 174 fn new(
175 options: CheckOptions, 175 options: CheckOptions,
176 workspace_root: PathBuf, 176 workspace_root: PathBuf,
177 shared: Arc<RwLock<CheckWatcherSharedState>>, 177 shared: Arc<RwLock<CheckWatcherSharedState>>,
@@ -180,7 +180,7 @@ impl CheckWatcherState {
180 CheckWatcherState { options, workspace_root, watcher, last_update_req: None, shared } 180 CheckWatcherState { options, workspace_root, watcher, last_update_req: None, shared }
181 } 181 }
182 182
183 pub fn run(&mut self, task_send: &Sender<CheckTask>, cmd_recv: &Receiver<CheckCommand>) { 183 fn run(&mut self, task_send: &Sender<CheckTask>, cmd_recv: &Receiver<CheckCommand>) {
184 loop { 184 loop {
185 select! { 185 select! {
186 recv(&cmd_recv) -> cmd => match cmd { 186 recv(&cmd_recv) -> cmd => match cmd {