diff options
author | Aleksey Kladov <[email protected]> | 2020-04-01 10:16:43 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-01 10:16:43 +0100 |
commit | b5306ea70659aad28b1a5de248128b47a5e5f1bf (patch) | |
tree | eca5f6bd69dc7f7f0df5a3a4ab5ed47f5aa7255e /crates | |
parent | 3990d971e54b69949f26bbbc530fa22fdc2fcd7f (diff) |
Simplify
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_flycheck/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_flycheck/src/lib.rs b/crates/ra_flycheck/src/lib.rs index 2990c1f95..75aece45f 100644 --- a/crates/ra_flycheck/src/lib.rs +++ b/crates/ra_flycheck/src/lib.rs | |||
@@ -37,7 +37,7 @@ pub struct CheckConfig { | |||
37 | pub struct Flycheck { | 37 | pub struct Flycheck { |
38 | // XXX: drop order is significant | 38 | // XXX: drop order is significant |
39 | cmd_send: Sender<CheckCommand>, | 39 | cmd_send: Sender<CheckCommand>, |
40 | handle: Option<jod_thread::JoinHandle<()>>, | 40 | handle: jod_thread::JoinHandle<()>, |
41 | pub task_recv: Receiver<CheckTask>, | 41 | pub task_recv: Receiver<CheckTask>, |
42 | } | 42 | } |
43 | 43 | ||
@@ -49,7 +49,7 @@ impl Flycheck { | |||
49 | let mut check = FlycheckThread::new(config, workspace_root); | 49 | let mut check = FlycheckThread::new(config, workspace_root); |
50 | check.run(&task_send, &cmd_recv); | 50 | check.run(&task_send, &cmd_recv); |
51 | }); | 51 | }); |
52 | Flycheck { task_recv, cmd_send, handle: Some(handle) } | 52 | Flycheck { task_recv, cmd_send, handle } |
53 | } | 53 | } |
54 | 54 | ||
55 | /// Schedule a re-start of the cargo check worker. | 55 | /// Schedule a re-start of the cargo check worker. |