diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2021-12-28 12:23:06 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2021-12-28 12:23:06 +0000 |
commit | cfb5d3fd45a810e5cde6811b039d154241d1444c (patch) | |
tree | 2788bd5fe7e81a165cb25d9c342ebfa1af0821a2 /src/serde/ser.rs | |
parent | 84a174c94d2b07c9226a8ba856d81d67e5468cd9 (diff) | |
download | mlua-cfb5d3fd45a810e5cde6811b039d154241d1444c.zip |
Fix clippy warnings
Diffstat (limited to 'src/serde/ser.rs')
-rw-r--r-- | src/serde/ser.rs | 3 |
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 |