mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: ensure that ws loading error includes path to ws
This commit is contained in:
parent
00b9d9faf4
commit
49318bbae7
4 changed files with 30 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
//! See [`ManifestPath`].
|
||||
use std::{ops, path::Path};
|
||||
use std::{fmt, ops, path::Path};
|
||||
|
||||
use paths::{AbsPath, AbsPathBuf};
|
||||
|
||||
|
@ -40,6 +40,12 @@ impl ManifestPath {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for ManifestPath {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fmt::Display::fmt(&self.file.display(), f)
|
||||
}
|
||||
}
|
||||
|
||||
impl ops::Deref for ManifestPath {
|
||||
type Target = AbsPath;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue