fix: ensure that ws loading error includes path to ws

This commit is contained in:
Alex Kladov 2023-06-19 12:32:04 +01:00
parent 00b9d9faf4
commit 49318bbae7
4 changed files with 30 additions and 2 deletions

View file

@ -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;