Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(toml): Deprecate 'Deserializer::end' #476

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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