From e1d040a6a42647355456160840769c56c94b76a6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 29 Dec 2019 15:07:53 +0100 Subject: Reduce visibility --- crates/ra_cargo_watch/src/lib.rs | 6 +++--- 1 file 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 { #[derive(Debug)] pub struct CheckWatcher { pub task_recv: Receiver, - pub cmd_send: Option>, pub shared: Arc>, + cmd_send: Option>, handle: Option>, } @@ -171,7 +171,7 @@ struct CheckWatcherState { } impl CheckWatcherState { - pub fn new( + fn new( options: CheckOptions, workspace_root: PathBuf, shared: Arc>, @@ -180,7 +180,7 @@ impl CheckWatcherState { CheckWatcherState { options, workspace_root, watcher, last_update_req: None, shared } } - pub fn run(&mut self, task_send: &Sender, cmd_recv: &Receiver) { + fn run(&mut self, task_send: &Sender, cmd_recv: &Receiver) { loop { select! { recv(&cmd_recv) -> cmd => match cmd { -- cgit v1.2.3