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 {
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue