From 5a184fe85517507fd3b07c6fb36b017e558665f7 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 25 Jun 2020 08:59:55 +0200 Subject: Unify style --- crates/ra_flycheck/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_flycheck/src') 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 { impl FlycheckHandle { pub fn spawn( + sender: Box, config: FlycheckConfig, workspace_root: PathBuf, - sender: Box, ) -> FlycheckHandle { let (cmd_send, cmd_recv) = unbounded::(); let handle = jod_thread::spawn(move || { - FlycheckActor::new(config, workspace_root, sender).run(&cmd_recv); + FlycheckActor::new(sender, config, workspace_root).run(&cmd_recv); }); FlycheckHandle { cmd_send, handle } } @@ -114,9 +114,9 @@ struct FlycheckActor { impl FlycheckActor { fn new( + sender: Box, config: FlycheckConfig, workspace_root: PathBuf, - sender: Box, ) -> FlycheckActor { FlycheckActor { sender, -- cgit v1.2.3