diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2024-05-15 23:11:33 +0100 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2024-05-15 23:11:33 +0100 |
commit | ea2faa37556f0483ca59353c224a17a4569d5a3d (patch) | |
tree | 7c4ba9f7907ef63dd956aaf33d811dacc23171af | |
parent | 59c9abbac76b7ec60c470c94698dfb29f6683b2e (diff) | |
download | mlua-ea2faa37556f0483ca59353c224a17a4569d5a3d.zip |
clippy
-rw-r--r-- | src/lua.rs | 1 | ||||
-rw-r--r-- | src/table.rs | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1293,6 +1293,7 @@ impl Lua { /// See https://github.com/luau-lang/luau/blob/master/CONTRIBUTING.md#feature-flags for details. #[cfg(feature = "luau")] #[doc(hidden)] + #[allow(clippy::result_unit_err)] pub fn set_fflag(name: &str, enabled: bool) -> StdResult<(), ()> { if let Ok(name) = CString::new(name) { if unsafe { ffi::luau_setfflag(name.as_ptr(), enabled as c_int) != 0 } { diff --git a/src/table.rs b/src/table.rs index f0b4f82..70b049b 100644 --- a/src/table.rs +++ b/src/table.rs @@ -1101,7 +1101,7 @@ impl<'a, 'lua> Serialize for SerializableTable<'a, 'lua> { let options = self.options; let visited = &self.visited; - let _guard = RecursionGuard::new(&self.table, visited); + let _guard = RecursionGuard::new(self.table, visited); // Array let len = self.table.raw_len(); |