@@ -683,7 +683,7 @@ impl<'a> SerializableValue<'a> {
683
683
///
684
684
/// Default: **true**
685
685
#[ 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 {
687
687
self . options . deny_unsupported_types = enabled;
688
688
self
689
689
}
@@ -694,7 +694,7 @@ impl<'a> SerializableValue<'a> {
694
694
///
695
695
/// Default: **true**
696
696
#[ 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 {
698
698
self . options . deny_recursive_tables = enabled;
699
699
self
700
700
}
@@ -703,7 +703,7 @@ impl<'a> SerializableValue<'a> {
703
703
///
704
704
/// Default: **false**
705
705
#[ must_use]
706
- pub const fn sort_keys ( mut self , enabled : bool ) -> Self {
706
+ pub fn sort_keys ( mut self , enabled : bool ) -> Self {
707
707
self . options . sort_keys = enabled;
708
708
self
709
709
}
@@ -712,7 +712,7 @@ impl<'a> SerializableValue<'a> {
712
712
///
713
713
/// Default: **false**
714
714
#[ 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 {
716
716
self . options . encode_empty_tables_as_array = enabled;
717
717
self
718
718
}
@@ -723,7 +723,7 @@ impl<'a> SerializableValue<'a> {
723
723
///
724
724
/// Default: **false**
725
725
#[ 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 {
727
727
self . options . detect_mixed_tables = enabled;
728
728
self
729
729
}
0 commit comments