diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_project_model/src/lib.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index e36338860..e24801818 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs | |||
@@ -25,7 +25,7 @@ pub use crate::{ | |||
25 | 25 | ||
26 | pub type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>; | 26 | pub type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>; |
27 | 27 | ||
28 | #[derive(Clone, PartialEq, Eq, Hash)] | 28 | #[derive(Clone, PartialEq, Eq, Hash, Debug)] |
29 | pub struct CargoTomlNotFoundError(pub PathBuf); | 29 | pub struct CargoTomlNotFoundError(pub PathBuf); |
30 | 30 | ||
31 | impl std::fmt::Display for CargoTomlNotFoundError { | 31 | impl std::fmt::Display for CargoTomlNotFoundError { |
@@ -34,12 +34,6 @@ impl std::fmt::Display for CargoTomlNotFoundError { | |||
34 | } | 34 | } |
35 | } | 35 | } |
36 | 36 | ||
37 | impl std::fmt::Debug for CargoTomlNotFoundError { | ||
38 | fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
39 | write!(fmt, "can't find Cargo.toml at {}", self.0.display()) | ||
40 | } | ||
41 | } | ||
42 | |||
43 | impl Error for CargoTomlNotFoundError {} | 37 | impl Error for CargoTomlNotFoundError {} |
44 | 38 | ||
45 | #[derive(Debug, Clone)] | 39 | #[derive(Debug, Clone)] |