aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilco Kusee <[email protected]>2020-01-08 16:21:19 +0000
committerWilco Kusee <[email protected]>2020-01-08 16:21:19 +0000
commit738d5a7ec2e8f54e6084482c1d45abe93084cbff (patch)
tree41c6aa36b5e55057c1b6fe1a0aa8cc61efc8a941
parent003620f0d61c1c8792453294d9b2ef535afc2831 (diff)
Derive debug
-rw-r--r--crates/ra_project_model/src/lib.rs8
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
26pub type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>; 26pub 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)]
29pub struct CargoTomlNotFoundError(pub PathBuf); 29pub struct CargoTomlNotFoundError(pub PathBuf);
30 30
31impl std::fmt::Display for CargoTomlNotFoundError { 31impl std::fmt::Display for CargoTomlNotFoundError {
@@ -34,12 +34,6 @@ impl std::fmt::Display for CargoTomlNotFoundError {
34 } 34 }
35} 35}
36 36
37impl 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
43impl Error for CargoTomlNotFoundError {} 37impl Error for CargoTomlNotFoundError {}
44 38
45#[derive(Debug, Clone)] 39#[derive(Debug, Clone)]