diff options
author | Aleksey Kladov <[email protected]> | 2020-06-25 07:59:55 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-25 08:00:33 +0100 |
commit | 5a184fe85517507fd3b07c6fb36b017e558665f7 (patch) | |
tree | 59013783df70cbcb09e57ad2c11dc85f496e1574 /crates/ra_flycheck/src | |
parent | dab8808e82b26a45cff00d1f49863562cf4f5ce8 (diff) |
Unify style
Diffstat (limited to 'crates/ra_flycheck/src')
-rw-r--r-- | crates/ra_flycheck/src/lib.rs | 6 |
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 | ||
57 | impl FlycheckHandle { | 57 | impl 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 | ||
115 | impl FlycheckActor { | 115 | impl 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, |