diff --git a/crates/flycheck/src/lib.rs b/crates/flycheck/src/lib.rs index 9335098ff09..0d68fcd4d3b 100644 --- a/crates/flycheck/src/lib.rs +++ b/crates/flycheck/src/lib.rs @@ -51,7 +51,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { pub struct FlycheckHandle { // XXX: drop order is significant cmd_send: Sender, - handle: jod_thread::JoinHandle, + thread: jod_thread::JoinHandle, } impl FlycheckHandle { @@ -61,10 +61,10 @@ pub fn spawn( workspace_root: PathBuf, ) -> FlycheckHandle { let (cmd_send, cmd_recv) = unbounded::(); - let handle = jod_thread::spawn(move || { + let thread = jod_thread::spawn(move || { FlycheckActor::new(sender, config, workspace_root).run(cmd_recv); }); - FlycheckHandle { cmd_send, handle } + FlycheckHandle { cmd_send, thread } } /// Schedule a re-start of the cargo check worker.