We probably don't need to impl std::error::Error if we implemented From

This commit is contained in:
flyingscorpio@clevo 2022-12-09 16:18:28 +01:00
parent 7f98d3cbba
commit e16c2e53c7

View file

@ -21,8 +21,6 @@ impl Display for CacheError {
} }
} }
impl std::error::Error for CacheError {}
impl From<ConnectionError> for CacheError { impl From<ConnectionError> for CacheError {
fn from(err: ConnectionError) -> Self { fn from(err: ConnectionError) -> Self {
CacheError::PgError(err) CacheError::PgError(err)