Skip to content

Commit 452dc8b

Browse files
committed
clippy
1 parent 63a255b commit 452dc8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/userdata.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,7 @@ impl AnyUserData {
10911091
lua.push_ref(&self.0);
10921092
protect_lua!(state, 1, 1, fn(state) {
10931093
// Try `__todebugstring` metamethod first, then `__tostring`
1094+
#[allow(clippy::collapsible_if)]
10941095
if ffi::luaL_callmeta(state, -1, cstr!("__todebugstring")) == 0 {
10951096
if ffi::luaL_callmeta(state, -1, cstr!("__tostring")) == 0 {
10961097
ffi::lua_pushnil(state);

0 commit comments

Comments
 (0)