aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_flycheck/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_flycheck/src')
-rw-r--r--crates/ra_flycheck/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_flycheck/src/lib.rs b/crates/ra_flycheck/src/lib.rs
index 063603b45..af75adbe2 100644
--- a/crates/ra_flycheck/src/lib.rs
+++ b/crates/ra_flycheck/src/lib.rs
@@ -56,13 +56,13 @@ pub struct FlycheckHandle {
56 56
57impl FlycheckHandle { 57impl FlycheckHandle {
58 pub fn spawn( 58 pub fn spawn(
59 sender: Box<dyn Fn(CheckTask) + Send>,
59 config: FlycheckConfig, 60 config: FlycheckConfig,
60 workspace_root: PathBuf, 61 workspace_root: PathBuf,
61 sender: Box<dyn Fn(CheckTask) + Send>,
62 ) -> FlycheckHandle { 62 ) -> FlycheckHandle {
63 let (cmd_send, cmd_recv) = unbounded::<CheckCommand>(); 63 let (cmd_send, cmd_recv) = unbounded::<CheckCommand>();
64 let handle = jod_thread::spawn(move || { 64 let handle = jod_thread::spawn(move || {
65 FlycheckActor::new(config, workspace_root, sender).run(&cmd_recv); 65 FlycheckActor::new(sender, config, workspace_root).run(&cmd_recv);
66 }); 66 });
67 FlycheckHandle { cmd_send, handle } 67 FlycheckHandle { cmd_send, handle }
68 } 68 }
@@ -114,9 +114,9 @@ struct FlycheckActor {
114 114
115impl FlycheckActor { 115impl FlycheckActor {
116 fn new( 116 fn new(
117 sender: Box<dyn Fn(CheckTask) + Send>,
117 config: FlycheckConfig, 118 config: FlycheckConfig,
118 workspace_root: PathBuf, 119 workspace_root: PathBuf,
119 sender: Box<dyn Fn(CheckTask) + Send>,
120 ) -> FlycheckActor { 120 ) -> FlycheckActor {
121 FlycheckActor { 121 FlycheckActor {
122 sender, 122 sender,