diff options
author | Aleksey Kladov <[email protected]> | 2020-06-28 21:31:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-28 21:31:40 +0100 |
commit | 309b21f37861a8c6550f93e7f9b8f955a0b4b256 (patch) | |
tree | d4cb97061c7b361975d537e4d63cd712bb8b56e6 /crates/flycheck/src | |
parent | 80ef52f0d5f9383e9f42ae77d9cb6b77483f11a6 (diff) |
Rename
Diffstat (limited to 'crates/flycheck/src')
-rw-r--r-- | crates/flycheck/src/lib.rs | 6 |
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 { | |||
51 | pub struct FlycheckHandle { | 51 | pub 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 | ||
57 | impl FlycheckHandle { | 57 | impl 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. |