From cfb5d3fd45a810e5cde6811b039d154241d1444c Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Tue, 28 Dec 2021 12:23:06 +0000 Subject: Fix clippy warnings --- src/serde/ser.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/serde/ser.rs') 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 -- cgit v1.2.3