mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Small file error display fix
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
parent
b5f524c7ff
commit
d8c36029cc
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ impl Sysroot {
|
|||
pub fn discover(cargo_toml: &AbsPath) -> Result<Sysroot> {
|
||||
log::debug!("Discovering sysroot for {}", cargo_toml.display());
|
||||
let current_dir = cargo_toml.parent().ok_or_else(|| {
|
||||
format_err!("Failed to find the parent directory for file {:?}", cargo_toml)
|
||||
format_err!("Failed to find the parent directory for {}", cargo_toml.display())
|
||||
})?;
|
||||
let sysroot_dir = discover_sysroot_dir(current_dir)?;
|
||||
let sysroot_src_dir = discover_sysroot_src_dir(&sysroot_dir, current_dir)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue