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