diff options
author | Wilco Kusee <[email protected]> | 2020-01-08 16:21:19 +0000 |
---|---|---|
committer | Wilco Kusee <[email protected]> | 2020-01-08 16:21:19 +0000 |
commit | 738d5a7ec2e8f54e6084482c1d45abe93084cbff (patch) | |
tree | 41c6aa36b5e55057c1b6fe1a0aa8cc61efc8a941 /crates/ra_project_model | |
parent | 003620f0d61c1c8792453294d9b2ef535afc2831 (diff) |
Derive debug
Diffstat (limited to 'crates/ra_project_model')
-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)] |