mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Use Sender instead of boxed closure in vfs
This commit is contained in:
parent
cb6b2ab5ba
commit
3b560a550a
6 changed files with 38 additions and 31 deletions
|
@ -64,8 +64,7 @@ pub fn load_workspace(
|
|||
let (sender, receiver) = unbounded();
|
||||
let mut vfs = vfs::Vfs::default();
|
||||
let mut loader = {
|
||||
let loader =
|
||||
vfs_notify::NotifyHandle::spawn(Box::new(move |msg| sender.send(msg).unwrap()));
|
||||
let loader = vfs_notify::NotifyHandle::spawn(sender);
|
||||
Box::new(loader)
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue