Derive debug
This commit is contained in:
@@ -25,7 +25,7 @@ pub use crate::{
|
|||||||
|
|
||||||
pub type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>;
|
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);
|
pub struct CargoTomlNotFoundError(pub PathBuf);
|
||||||
|
|
||||||
impl std::fmt::Display for CargoTomlNotFoundError {
|
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 {}
|
impl Error for CargoTomlNotFoundError {}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|||||||
Reference in New Issue
Block a user