Skip to content

Commit

Permalink
fix(de): Deprecate Deserializer::new
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Mar 8, 2024
1 parent e871f10 commit ef536f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/toml_edit/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ pub struct Deserializer<S = String> {

impl Deserializer {
/// Deserialization implementation for TOML.
#[deprecated(since = "0.22.6", note = "Replaced with `Deserializer::from`")]
pub fn new(input: crate::Document) -> Self {
Self::from(input)
}
Expand Down

0 comments on commit ef536f5

Please sign in to comment.