Skip to content

Commit ea2faa3

Browse files
committed
clippy
1 parent 59c9abb commit ea2faa3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lua.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,7 @@ impl Lua {
12931293
/// See https://github.com/luau-lang/luau/blob/master/CONTRIBUTING.md#feature-flags for details.
12941294
#[cfg(feature = "luau")]
12951295
#[doc(hidden)]
1296+
#[allow(clippy::result_unit_err)]
12961297
pub fn set_fflag(name: &str, enabled: bool) -> StdResult<(), ()> {
12971298
if let Ok(name) = CString::new(name) {
12981299
if unsafe { ffi::luau_setfflag(name.as_ptr(), enabled as c_int) != 0 } {

src/table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ impl<'a, 'lua> Serialize for SerializableTable<'a, 'lua> {
11011101

11021102
let options = self.options;
11031103
let visited = &self.visited;
1104-
let _guard = RecursionGuard::new(&self.table, visited);
1104+
let _guard = RecursionGuard::new(self.table, visited);
11051105

11061106
// Array
11071107
let len = self.table.raw_len();

0 commit comments

Comments
 (0)