diff options
author | Kirill Bulatov <[email protected]> | 2021-05-24 12:47:20 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-24 12:47:20 +0100 |
commit | d8c36029cc3961ce742aa6e5d59926c5a7e7170a (patch) | |
tree | 6e9cf689f443e5a2177c805806af20c1e2015e13 /crates | |
parent | b5f524c7ff4973d58b5e5ec70765157a6cb0c526 (diff) |
Small file error display fix
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r-- | crates/project_model/src/sysroot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/project_model/src/sysroot.rs b/crates/project_model/src/sysroot.rs index c89e2f6e1..4e39d6dd3 100644 --- a/crates/project_model/src/sysroot.rs +++ b/crates/project_model/src/sysroot.rs | |||
@@ -51,7 +51,7 @@ impl Sysroot { | |||
51 | pub fn discover(cargo_toml: &AbsPath) -> Result<Sysroot> { | 51 | pub fn discover(cargo_toml: &AbsPath) -> Result<Sysroot> { |
52 | log::debug!("Discovering sysroot for {}", cargo_toml.display()); | 52 | log::debug!("Discovering sysroot for {}", cargo_toml.display()); |
53 | let current_dir = cargo_toml.parent().ok_or_else(|| { | 53 | let current_dir = cargo_toml.parent().ok_or_else(|| { |
54 | format_err!("Failed to find the parent directory for file {:?}", cargo_toml) | 54 | format_err!("Failed to find the parent directory for {}", cargo_toml.display()) |
55 | })?; | 55 | })?; |
56 | let sysroot_dir = discover_sysroot_dir(current_dir)?; | 56 | let sysroot_dir = discover_sysroot_dir(current_dir)?; |
57 | let sysroot_src_dir = discover_sysroot_src_dir(&sysroot_dir, current_dir)?; | 57 | let sysroot_src_dir = discover_sysroot_src_dir(&sysroot_dir, current_dir)?; |