use thiserror

This commit is contained in:
Jeong YunWon 2022-08-23 03:59:51 +09:00
parent a1640e4aa1
commit 122382cb53
3 changed files with 4 additions and 12 deletions

View file

@ -16,14 +16,7 @@ impl<T> std::ops::Deref for BaseError<T> {
}
}
impl<T> std::error::Error for BaseError<T>
where
T: std::fmt::Display + std::fmt::Debug,
{
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
None
}
}
impl<T> std::error::Error for BaseError<T> where T: std::fmt::Display + std::fmt::Debug {}
impl<T> Display for BaseError<T>
where