summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2024-05-15 23:11:33 +0100
committerAlex Orlenko <zxteam@protonmail.com>2024-05-15 23:11:33 +0100
commitea2faa37556f0483ca59353c224a17a4569d5a3d (patch)
tree7c4ba9f7907ef63dd956aaf33d811dacc23171af
parent59c9abbac76b7ec60c470c94698dfb29f6683b2e (diff)
downloadmlua-ea2faa37556f0483ca59353c224a17a4569d5a3d.zip
clippy
-rw-r--r--src/lua.rs1
-rw-r--r--src/table.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lua.rs b/src/lua.rs
index 6def0c0..8882013 100644
--- a/src/lua.rs
+++ b/src/lua.rs
@@ -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();