aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-12-29 14:07:53 +0000
committerAleksey Kladov <[email protected]>2019-12-29 14:07:53 +0000
commite1d040a6a42647355456160840769c56c94b76a6 (patch)
treea5e5ce29538fd28564157245e6c5a87e98019666
parentdc48f89581843248660ceb755bb20469ab6ac0c9 (diff)
Reduce visibility
-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 {