aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-06-28 21:31:40 +0100
committerAleksey Kladov <[email protected]>2020-06-28 21:31:40 +0100
commit309b21f37861a8c6550f93e7f9b8f955a0b4b256 (patch)
treed4cb97061c7b361975d537e4d63cd712bb8b56e6 /crates
parent80ef52f0d5f9383e9f42ae77d9cb6b77483f11a6 (diff)
Rename
Diffstat (limited to 'crates')
-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.