Skip to content

Commit 738d5a7

Browse files
committed
Derive debug
1 parent 003620f commit 738d5a7

File tree

1 file changed

+1
-7
lines changed
  • crates/ra_project_model/src

1 file changed

+1
-7
lines changed

crates/ra_project_model/src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub use crate::{
2525

2626
pub type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>;
2727

28-
#[derive(Clone, PartialEq, Eq, Hash)]
28+
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
2929
pub struct CargoTomlNotFoundError(pub PathBuf);
3030

3131
impl std::fmt::Display for CargoTomlNotFoundError {
@@ -34,12 +34,6 @@ impl std::fmt::Display for CargoTomlNotFoundError {
3434
}
3535
}
3636

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-
4337
impl Error for CargoTomlNotFoundError {}
4438

4539
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)