From 3b1dee5ef7b74c16bead5a610d2dbe2ebacb3eb6 Mon Sep 17 00:00:00 2001 From: Ethiraric Date: Sun, 7 Apr 2024 02:01:26 +0200 Subject: [PATCH] Remove deprecated method implementations of Error. --- parser/src/scanner.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/parser/src/scanner.rs b/parser/src/scanner.rs index dece35b..70512a6 100644 --- a/parser/src/scanner.rs +++ b/parser/src/scanner.rs @@ -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,