Skip to content

Commit

Permalink
Merge pull request #476 from epage/deprecated
Browse files Browse the repository at this point in the history
fix(toml): Deprecate 'Deserializer::end'
  • Loading branch information
epage authored Jan 20, 2023
2 parents 266fa47 + d8dfb1c commit 8395fd1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/toml/src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1271,22 +1271,20 @@ impl<'a> Deserializer<'a> {
}
}

/// The `Deserializer::end` method should be called after a value has been
/// fully deserialized. This allows the `Deserializer` to validate that the
/// input stream is at the end or that it only has trailing
/// whitespace/comments.
#[doc(hidden)]
#[deprecated(since = "0.5.11")]
pub fn end(&mut self) -> Result<(), Error> {
Ok(())
}

#[doc(hidden)]
#[deprecated(since = "0.5.10")]
#[deprecated(since = "0.5.11")]
pub fn set_require_newline_after_table(&mut self, require: bool) {
self.require_newline_after_table = require;
}

#[doc(hidden)]
#[deprecated(since = "0.5.10")]
#[deprecated(since = "0.5.11")]
pub fn set_allow_duplicate_after_longer_table(&mut self, allow: bool) {
self.allow_duplciate_after_longer_table = allow;
}
Expand Down

0 comments on commit 8395fd1

Please sign in to comment.