File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,15 +55,6 @@ impl Error {
5555 pub ( crate ) fn set_span ( & mut self , span : Option < std:: ops:: Range < usize > > ) {
5656 self . inner . set_span ( span) ;
5757 }
58-
59- /// Produces a (line, column) pair of the position of the error if available
60- ///
61- /// All indexes are 0-based.
62- #[ deprecated( since = "0.18.0" , note = "See instead `Error::span`" ) ]
63- pub fn line_col ( & self ) -> Option < ( usize , usize ) > {
64- #[ allow( deprecated) ]
65- self . inner . line_col ( )
66- }
6758}
6859
6960impl serde:: de:: Error for Error {
Original file line number Diff line number Diff line change @@ -72,18 +72,6 @@ impl TomlError {
7272 pub ( crate ) fn set_original ( & mut self , original : Option < String > ) {
7373 self . original = original;
7474 }
75-
76- /// Produces a (line, column) pair of the position of the error if available
77- ///
78- /// All indexes are 0-based.
79- #[ deprecated( since = "0.18.0" , note = "See instead `TomlError::span`" ) ]
80- pub fn line_col ( & self ) -> Option < ( usize , usize ) > {
81- if let ( Some ( original) , Some ( span) ) = ( & self . original , self . span ( ) ) {
82- Some ( translate_position ( original. as_bytes ( ) , span. start ) )
83- } else {
84- None
85- }
86- }
8775}
8876
8977/// Displays a TOML parse error
You can’t perform that action at this time.
0 commit comments