Rename
This commit is contained in:
parent
80ef52f0d5
commit
309b21f378
@ -51,7 +51,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
pub struct FlycheckHandle {
|
||||
// XXX: drop order is significant
|
||||
cmd_send: Sender<Restart>,
|
||||
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::<Restart>();
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user