From b5306ea70659aad28b1a5de248128b47a5e5f1bf Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Apr 2020 11:16:43 +0200 Subject: Simplify --- crates/ra_flycheck/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') 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 { pub struct Flycheck { // XXX: drop order is significant cmd_send: Sender, - handle: Option>, + handle: jod_thread::JoinHandle<()>, pub task_recv: Receiver, } @@ -49,7 +49,7 @@ impl Flycheck { let mut check = FlycheckThread::new(config, workspace_root); check.run(&task_send, &cmd_recv); }); - Flycheck { task_recv, cmd_send, handle: Some(handle) } + Flycheck { task_recv, cmd_send, handle } } /// Schedule a re-start of the cargo check worker. -- cgit v1.2.3