Remove deprecated method implementations of Error.

This commit is contained in:
Ethiraric 2024-04-07 02:01:26 +02:00
parent bdcf7f48f9
commit 3b1dee5ef7

View file

@ -109,17 +109,12 @@ impl ScanError {
}
impl Error for ScanError {
fn description(&self) -> &str {
self.info.as_ref()
}
fn cause(&self) -> Option<&dyn Error> {
fn source(&self) -> Option<&(dyn Error + 'static)> {
None
}
}
impl fmt::Display for ScanError {
// col starts from 0
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
write!(
formatter,