Skip to content

Commit b5306ea

Browse files
committed
Simplify
1 parent 3990d97 commit b5306ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ra_flycheck/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub struct CheckConfig {
3737
pub struct Flycheck {
3838
// XXX: drop order is significant
3939
cmd_send: Sender<CheckCommand>,
40-
handle: Option<jod_thread::JoinHandle<()>>,
40+
handle: jod_thread::JoinHandle<()>,
4141
pub task_recv: Receiver<CheckTask>,
4242
}
4343

@@ -49,7 +49,7 @@ impl Flycheck {
4949
let mut check = FlycheckThread::new(config, workspace_root);
5050
check.run(&task_send, &cmd_recv);
5151
});
52-
Flycheck { task_recv, cmd_send, handle: Some(handle) }
52+
Flycheck { task_recv, cmd_send, handle }
5353
}
5454

5555
/// Schedule a re-start of the cargo check worker.

0 commit comments

Comments
 (0)