mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Fix function calls
This commit is contained in:
parent
fc8024de51
commit
a5da770ec6
10 changed files with 9 additions and 12 deletions
|
@ -18,7 +18,7 @@ fn main() -> Result<()> {
|
|||
.directory("log")
|
||||
.start()?;
|
||||
info!("lifecycle: server started");
|
||||
match ::std::panic::catch_unwind(|| main_inner()) {
|
||||
match ::std::panic::catch_unwind(main_inner) {
|
||||
Ok(res) => {
|
||||
info!("lifecycle: terminating process with {:?}", res);
|
||||
res
|
||||
|
|
|
@ -289,8 +289,8 @@ pub fn handle_runnables(
|
|||
.filter_map(|ws| {
|
||||
let tgt = ws.target_by_root(path)?;
|
||||
Some((
|
||||
tgt.package(ws).name(ws).clone(),
|
||||
tgt.name(ws).clone(),
|
||||
tgt.package(ws).name(ws),
|
||||
tgt.name(ws),
|
||||
tgt.kind(ws),
|
||||
))
|
||||
})
|
||||
|
|
|
@ -173,7 +173,6 @@ pub fn workspace_loader() -> (Worker<PathBuf, Result<CargoWorkspace>>, ThreadWat
|
|||
1,
|
||||
|input_receiver, output_sender| {
|
||||
input_receiver
|
||||
.into_iter()
|
||||
.map(|path| CargoWorkspace::from_cargo_metadata(path.as_path()))
|
||||
.for_each(|it| output_sender.send(it))
|
||||
},
|
||||
|
|
|
@ -24,7 +24,6 @@ pub fn roots_loader() -> (Worker<PathBuf, (PathBuf, Vec<FileEvent>)>, ThreadWatc
|
|||
128,
|
||||
|input_receiver, output_sender| {
|
||||
input_receiver
|
||||
.into_iter()
|
||||
.map(|path| {
|
||||
debug!("loading {} ...", path.as_path().display());
|
||||
let events = load_root(path.as_path());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue