aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)]