aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/flycheck/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/flycheck/src/lib.rs b/crates/flycheck/src/lib.rs
index 9335098ff..0d68fcd4d 100644
--- a/crates/flycheck/src/lib.rs
+++ b/crates/flycheck/src/lib.rs
@@ -51,7 +51,7 @@ impl fmt::Display for FlycheckConfig {
51pub struct FlycheckHandle { 51pub struct FlycheckHandle {
52 // XXX: drop order is significant 52 // XXX: drop order is significant
53 cmd_send: Sender<Restart>, 53 cmd_send: Sender<Restart>,
54 handle: jod_thread::JoinHandle, 54 thread: jod_thread::JoinHandle,
55} 55}
56 56
57impl FlycheckHandle { 57impl FlycheckHandle {
@@ -61,10 +61,10 @@ impl FlycheckHandle {
61 workspace_root: PathBuf, 61 workspace_root: PathBuf,
62 ) -> FlycheckHandle { 62 ) -> FlycheckHandle {
63 let (cmd_send, cmd_recv) = unbounded::<Restart>(); 63 let (cmd_send, cmd_recv) = unbounded::<Restart>();
64 let handle = jod_thread::spawn(move || { 64 let thread = jod_thread::spawn(move || {
65 FlycheckActor::new(sender, config, workspace_root).run(cmd_recv); 65 FlycheckActor::new(sender, config, workspace_root).run(cmd_recv);
66 }); 66 });
67 FlycheckHandle { cmd_send, handle } 67 FlycheckHandle { cmd_send, thread }
68 } 68 }
69 69
70 /// Schedule a re-start of the cargo check worker. 70 /// Schedule a re-start of the cargo check worker.