Skip to content

Commit

Permalink
fix(ser)!: Remove deprecated pretty functions
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 27, 2023
1 parent 656ec56 commit 86280d7
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions crates/toml/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,51 +161,6 @@ impl<'d> Serializer<'d> {
ser.settings.multiline_array = true;
ser
}

#[doc(hidden)]
#[deprecated(
since = "0.6.0",
note = "string behavior is now automatic; for greater control deserialize to `toml_edit::Document` and use `toml_edit::visit_mut::VisitorMut`"
)]
pub fn pretty_string(&mut self, _value: bool) -> &mut Self {
self
}

#[doc(hidden)]
#[deprecated(
since = "0.6.0",
note = "string behavior is now automatic; for greater control deserialize to `toml_edit::Document` and use `toml_edit::visit_mut::VisitorMut`"
)]
pub fn pretty_string_literal(&mut self, _value: bool) -> &mut Self {
self
}

#[doc(hidden)]
#[deprecated(
since = "0.6.0",
note = "this is bundled in with `pretty`; for greater control deserialize to `toml_edit::Document` and use `toml_edit::visit_mut::VisitorMut`"
)]
pub fn pretty_array(&mut self, _value: bool) -> &mut Self {
self
}

#[doc(hidden)]
#[deprecated(
since = "0.6.0",
note = "this is bundled in with `pretty`; for greater control deserialize to `toml_edit::Document` and use `toml_edit::visit_mut::VisitorMut`"
)]
pub fn pretty_array_indent(&mut self, _value: usize) -> &mut Self {
self
}

#[doc(hidden)]
#[deprecated(
since = "0.6.0",
note = "this is bundled in with `pretty`; for greater control deserialize to `toml_edit::Document` and use `toml_edit::visit_mut::VisitorMut`"
)]
pub fn pretty_array_trailing_comma(&mut self, _value: bool) -> &mut Self {
self
}
}

#[cfg(feature = "display")]
Expand Down

0 comments on commit 86280d7

Please sign in to comment.