Skip to content

Commit 688edee

Browse files
committed
fix(toml)!: Remove deprecated Error::line_col function
1 parent 941a43d commit 688edee

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

crates/toml/src/de.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,6 @@ impl Error {
7070
pub fn span(&self) -> Option<std::ops::Range<usize>> {
7171
self.inner.span()
7272
}
73-
74-
/// Produces a (line, column) pair of the position of the error if available
75-
///
76-
/// All indexes are 0-based.
77-
#[deprecated(since = "0.18.0", note = "See instead `Error::span`")]
78-
#[cfg(feature = "parse")]
79-
pub fn line_col(&self) -> Option<(usize, usize)> {
80-
#[allow(deprecated)]
81-
self.inner.line_col()
82-
}
8373
}
8474

8575
impl serde::de::Error for Error {

0 commit comments

Comments
 (0)