File tree 2 files changed +0
-21
lines changed
2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,6 @@ impl Error {
55
55
pub ( crate ) fn set_span ( & mut self , span : Option < std:: ops:: Range < usize > > ) {
56
56
self . inner . set_span ( span) ;
57
57
}
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
- }
67
58
}
68
59
69
60
impl serde:: de:: Error for Error {
Original file line number Diff line number Diff line change @@ -72,18 +72,6 @@ impl TomlError {
72
72
pub ( crate ) fn set_original ( & mut self , original : Option < String > ) {
73
73
self . original = original;
74
74
}
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
- }
87
75
}
88
76
89
77
/// Displays a TOML parse error
You can’t perform that action at this time.
0 commit comments