mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Get rid of failure: ra_lsp_server & ra_project_model
This commit is contained in:
parent
a931fb1ef6
commit
9709bd39ca
10 changed files with 32 additions and 36 deletions
|
@ -3,7 +3,6 @@ use std::path::{Path, PathBuf};
|
|||
use cargo_metadata::{MetadataCommand, CargoOpt};
|
||||
use ra_arena::{Arena, RawId, impl_arena_id};
|
||||
use rustc_hash::FxHashMap;
|
||||
use failure::format_err;
|
||||
use ra_db::Edition;
|
||||
|
||||
use crate::Result;
|
||||
|
@ -127,7 +126,7 @@ impl CargoWorkspace {
|
|||
if let Some(parent) = cargo_toml.parent() {
|
||||
meta.current_dir(parent);
|
||||
}
|
||||
let meta = meta.exec().map_err(|e| format_err!("cargo metadata failed: {}", e))?;
|
||||
let meta = meta.exec().map_err(|e| format!("cargo metadata failed: {}", e))?;
|
||||
let mut pkg_by_id = FxHashMap::default();
|
||||
let mut packages = Arena::default();
|
||||
let mut targets = Arena::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue