summaryrefslogtreecommitdiff
path: root/src/serde/de.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/de.rs
parent84a174c94d2b07c9226a8ba856d81d67e5468cd9 (diff)
downloadmlua-cfb5d3fd45a810e5cde6811b039d154241d1444c.zip
Fix clippy warnings
Diffstat (limited to 'src/serde/de.rs')
-rw-r--r--src/serde/de.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/serde/de.rs b/src/serde/de.rs
index bda7f24..437de1d 100644
--- a/src/serde/de.rs
+++ b/src/serde/de.rs
@@ -61,6 +61,7 @@ impl Options {
/// Sets [`deny_unsupported_types`] option.
///
/// [`deny_unsupported_types`]: #structfield.deny_unsupported_types
+ #[must_use]
pub const fn deny_unsupported_types(mut self, enabled: bool) -> Self {
self.deny_unsupported_types = enabled;
self
@@ -69,6 +70,7 @@ impl Options {
/// Sets [`deny_recursive_tables`] option.
///
/// [`deny_recursive_tables`]: #structfield.deny_recursive_tables
+ #[must_use]
pub fn deny_recursive_tables(mut self, enabled: bool) -> Self {
self.deny_recursive_tables = enabled;
self