mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-26 03:45:04 +00:00
Rename
This commit is contained in:
parent
80ef52f0d5
commit
309b21f378
1 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ impl fmt::Display for FlycheckConfig {
|
||||||
pub struct FlycheckHandle {
|
pub struct FlycheckHandle {
|
||||||
// XXX: drop order is significant
|
// XXX: drop order is significant
|
||||||
cmd_send: Sender<Restart>,
|
cmd_send: Sender<Restart>,
|
||||||
handle: jod_thread::JoinHandle,
|
thread: jod_thread::JoinHandle,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl FlycheckHandle {
|
impl FlycheckHandle {
|
||||||
|
@ -61,10 +61,10 @@ impl FlycheckHandle {
|
||||||
workspace_root: PathBuf,
|
workspace_root: PathBuf,
|
||||||
) -> FlycheckHandle {
|
) -> FlycheckHandle {
|
||||||
let (cmd_send, cmd_recv) = unbounded::<Restart>();
|
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);
|
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.
|
/// Schedule a re-start of the cargo check worker.
|
||||||
|
|
Loading…
Reference in a new issue