@@ -683,7 +683,7 @@ impl<'a> SerializableValue<'a> {
683683 ///
684684 /// Default: **true**
685685 #[ must_use]
686- pub const fn deny_unsupported_types ( mut self , enabled : bool ) -> Self {
686+ pub fn deny_unsupported_types ( mut self , enabled : bool ) -> Self {
687687 self . options . deny_unsupported_types = enabled;
688688 self
689689 }
@@ -694,7 +694,7 @@ impl<'a> SerializableValue<'a> {
694694 ///
695695 /// Default: **true**
696696 #[ must_use]
697- pub const fn deny_recursive_tables ( mut self , enabled : bool ) -> Self {
697+ pub fn deny_recursive_tables ( mut self , enabled : bool ) -> Self {
698698 self . options . deny_recursive_tables = enabled;
699699 self
700700 }
@@ -703,7 +703,7 @@ impl<'a> SerializableValue<'a> {
703703 ///
704704 /// Default: **false**
705705 #[ must_use]
706- pub const fn sort_keys ( mut self , enabled : bool ) -> Self {
706+ pub fn sort_keys ( mut self , enabled : bool ) -> Self {
707707 self . options . sort_keys = enabled;
708708 self
709709 }
@@ -712,7 +712,7 @@ impl<'a> SerializableValue<'a> {
712712 ///
713713 /// Default: **false**
714714 #[ must_use]
715- pub const fn encode_empty_tables_as_array ( mut self , enabled : bool ) -> Self {
715+ pub fn encode_empty_tables_as_array ( mut self , enabled : bool ) -> Self {
716716 self . options . encode_empty_tables_as_array = enabled;
717717 self
718718 }
@@ -723,7 +723,7 @@ impl<'a> SerializableValue<'a> {
723723 ///
724724 /// Default: **false**
725725 #[ must_use]
726- pub const fn detect_mixed_tables ( mut self , enabled : bool ) -> Self {
726+ pub fn detect_mixed_tables ( mut self , enabled : bool ) -> Self {
727727 self . options . detect_mixed_tables = enabled;
728728 self
729729 }
0 commit comments