summaryrefslogtreecommitdiff
path: root/src/serde/ser.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2021-12-28 12:23:06 +0000
committerAlex Orlenko <zxteam@protonmail.com>2021-12-28 12:23:06 +0000
commitcfb5d3fd45a810e5cde6811b039d154241d1444c (patch)
tree2788bd5fe7e81a165cb25d9c342ebfa1af0821a2 /src/serde/ser.rs
parent84a174c94d2b07c9226a8ba856d81d67e5468cd9 (diff)
downloadmlua-cfb5d3fd45a810e5cde6811b039d154241d1444c.zip
Fix clippy warnings
Diffstat (limited to 'src/serde/ser.rs')
-rw-r--r--src/serde/ser.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/serde/ser.rs b/src/serde/ser.rs
index c6155ae..cb2141e 100644
--- a/src/serde/ser.rs
+++ b/src/serde/ser.rs
@@ -69,6 +69,7 @@ impl Options {
/// Sets [`set_array_metatable`] option.
///
/// [`set_array_metatable`]: #structfield.set_array_metatable
+ #[must_use]
pub const fn set_array_metatable(mut self, enabled: bool) -> Self {
self.set_array_metatable = enabled;
self
@@ -77,6 +78,7 @@ impl Options {
/// Sets [`serialize_none_to_null`] option.
///
/// [`serialize_none_to_null`]: #structfield.serialize_none_to_null
+ #[must_use]
pub const fn serialize_none_to_null(mut self, enabled: bool) -> Self {
self.serialize_none_to_null = enabled;
self
@@ -85,6 +87,7 @@ impl Options {
/// Sets [`serialize_unit_to_null`] option.
///
/// [`serialize_unit_to_null`]: #structfield.serialize_unit_to_null
+ #[must_use]
pub const fn serialize_unit_to_null(mut self, enabled: bool) -> Self {
self.serialize_unit_to_null = enabled;
self