Derive debug
This commit is contained in:
parent
003620f0d6
commit
738d5a7ec2
@ -25,7 +25,7 @@ pub use crate::{
|
||||
|
||||
pub type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>;
|
||||
|
||||
#[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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user