mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Unify style
This commit is contained in:
parent
dab8808e82
commit
5a184fe855
4 changed files with 19 additions and 19 deletions
|
@ -28,7 +28,7 @@ pub fn load_cargo(
|
|||
let mut vfs = vfs::Vfs::default();
|
||||
let mut loader = {
|
||||
let loader =
|
||||
vfs_notify::LoaderHandle::spawn(Box::new(move |msg| sender.send(msg).unwrap()));
|
||||
vfs_notify::NotifyHandle::spawn(Box::new(move |msg| sender.send(msg).unwrap()));
|
||||
Box::new(loader)
|
||||
};
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ fn create_flycheck(
|
|||
let (sender, receiver) = unbounded();
|
||||
let sender = Box::new(move |msg| sender.send(msg).unwrap());
|
||||
let cargo_project_root = cargo.workspace_root().to_path_buf();
|
||||
let flycheck = FlycheckHandle::spawn(config.clone(), cargo_project_root.into(), sender);
|
||||
let flycheck = FlycheckHandle::spawn(sender, config.clone(), cargo_project_root.into());
|
||||
Some((flycheck, receiver))
|
||||
}
|
||||
ProjectWorkspace::Json { .. } => {
|
||||
|
@ -121,7 +121,7 @@ impl GlobalState {
|
|||
};
|
||||
|
||||
let mut loader = {
|
||||
let loader = vfs_notify::LoaderHandle::spawn(Box::new(move |msg| {
|
||||
let loader = vfs_notify::NotifyHandle::spawn(Box::new(move |msg| {
|
||||
task_sender.send(msg).unwrap()
|
||||
}));
|
||||
Box::new(loader)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue