Skip to content

Commit

Permalink
fix(toml)!: Remove deprecated Error::line_col function
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 27, 2023
1 parent 941a43d commit 688edee
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/toml/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ impl Error {
pub fn span(&self) -> Option<std::ops::Range<usize>> {
self.inner.span()
}

/// Produces a (line, column) pair of the position of the error if available
///
/// All indexes are 0-based.
#[deprecated(since = "0.18.0", note = "See instead `Error::span`")]
#[cfg(feature = "parse")]
pub fn line_col(&self) -> Option<(usize, usize)> {
#[allow(deprecated)]
self.inner.line_col()
}
}

impl serde::de::Error for Error {
Expand Down

0 comments on commit 688edee

Please sign in to comment.