From 86280d7eb9bd443a55cd2f037cb832be120bf7e4 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 27 Jan 2023 11:30:55 -0600 Subject: [PATCH] fix(ser)!: Remove deprecated pretty functions --- crates/toml/src/ser.rs | 45 ------------------------------------------ 1 file changed, 45 deletions(-) diff --git a/crates/toml/src/ser.rs b/crates/toml/src/ser.rs index b8cf4b1d..2fa05934 100644 --- a/crates/toml/src/ser.rs +++ b/crates/toml/src/ser.rs @@ -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")]