mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Simplify
This commit is contained in:
parent
3990d971e5
commit
b5306ea706
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ pub struct CheckConfig {
|
|||
pub struct Flycheck {
|
||||
// XXX: drop order is significant
|
||||
cmd_send: Sender<CheckCommand>,
|
||||
handle: Option<jod_thread::JoinHandle<()>>,
|
||||
handle: jod_thread::JoinHandle<()>,
|
||||
pub task_recv: Receiver<CheckTask>,
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ impl Flycheck {
|
|||
let mut check = FlycheckThread::new(config, workspace_root);
|
||||
check.run(&task_send, &cmd_recv);
|
||||
});
|
||||
Flycheck { task_recv, cmd_send, handle: Some(handle) }
|
||||
Flycheck { task_recv, cmd_send, handle }
|
||||
}
|
||||
|
||||
/// Schedule a re-start of the cargo check worker.
|
||||
|
|
Loading…
Reference in a new issue