aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-06-25 07:59:55 +0100
committerAleksey Kladov <[email protected]>2020-06-25 08:00:33 +0100
commit5a184fe85517507fd3b07c6fb36b017e558665f7 (patch)
tree59013783df70cbcb09e57ad2c11dc85f496e1574 /crates/rust-analyzer
parentdab8808e82b26a45cff00d1f49863562cf4f5ce8 (diff)
Unify style
Diffstat (limited to 'crates/rust-analyzer')
-rw-r--r--crates/rust-analyzer/src/cli/load_cargo.rs2
-rw-r--r--crates/rust-analyzer/src/global_state.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/cli/load_cargo.rs b/crates/rust-analyzer/src/cli/load_cargo.rs
index 92e9b60fc..c5cf5ff27 100644
--- a/crates/rust-analyzer/src/cli/load_cargo.rs
+++ b/crates/rust-analyzer/src/cli/load_cargo.rs
@@ -28,7 +28,7 @@ pub fn load_cargo(
28 let mut vfs = vfs::Vfs::default(); 28 let mut vfs = vfs::Vfs::default();
29 let mut loader = { 29 let mut loader = {
30 let loader = 30 let loader =
31 vfs_notify::LoaderHandle::spawn(Box::new(move |msg| sender.send(msg).unwrap())); 31 vfs_notify::NotifyHandle::spawn(Box::new(move |msg| sender.send(msg).unwrap()));
32 Box::new(loader) 32 Box::new(loader)
33 }; 33 };
34 34
diff --git a/crates/rust-analyzer/src/global_state.rs b/crates/rust-analyzer/src/global_state.rs
index 42edadd70..c022ff705 100644
--- a/crates/rust-analyzer/src/global_state.rs
+++ b/crates/rust-analyzer/src/global_state.rs
@@ -37,7 +37,7 @@ fn create_flycheck(
37 let (sender, receiver) = unbounded(); 37 let (sender, receiver) = unbounded();
38 let sender = Box::new(move |msg| sender.send(msg).unwrap()); 38 let sender = Box::new(move |msg| sender.send(msg).unwrap());
39 let cargo_project_root = cargo.workspace_root().to_path_buf(); 39 let cargo_project_root = cargo.workspace_root().to_path_buf();
40 let flycheck = FlycheckHandle::spawn(config.clone(), cargo_project_root.into(), sender); 40 let flycheck = FlycheckHandle::spawn(sender, config.clone(), cargo_project_root.into());
41 Some((flycheck, receiver)) 41 Some((flycheck, receiver))
42 } 42 }
43 ProjectWorkspace::Json { .. } => { 43 ProjectWorkspace::Json { .. } => {
@@ -121,7 +121,7 @@ impl GlobalState {
121 }; 121 };
122 122
123 let mut loader = { 123 let mut loader = {
124 let loader = vfs_notify::LoaderHandle::spawn(Box::new(move |msg| { 124 let loader = vfs_notify::NotifyHandle::spawn(Box::new(move |msg| {
125 task_sender.send(msg).unwrap() 125 task_sender.send(msg).unwrap()
126 })); 126 }));
127 Box::new(loader) 127 Box::new(loader)