From 738d5a7ec2e8f54e6084482c1d45abe93084cbff Mon Sep 17 00:00:00 2001 From: Wilco Kusee Date: Wed, 8 Jan 2020 17:21:19 +0100 Subject: Derive debug --- crates/ra_project_model/src/lib.rs | 8 +------- 1 file changed, 1 insertion(+), 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::{ pub type Result = ::std::result::Result>; -#[derive(Clone, PartialEq, Eq, Hash)] +#[derive(Clone, PartialEq, Eq, Hash, Debug)] pub struct CargoTomlNotFoundError(pub PathBuf); impl std::fmt::Display for CargoTomlNotFoundError { @@ -34,12 +34,6 @@ impl std::fmt::Display for CargoTomlNotFoundError { } } -impl std::fmt::Debug for CargoTomlNotFoundError { - fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!(fmt, "can't find Cargo.toml at {}", self.0.display()) - } -} - impl Error for CargoTomlNotFoundError {} #[derive(Debug, Clone)] -- cgit v1.2.3