Remove deprecated method implementations of Error.
This commit is contained in:
parent
bdcf7f48f9
commit
3b1dee5ef7
1 changed files with 1 additions and 6 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue