Skip to content

Commit f5982bc

Browse files
committed
Add inline to FromLua<bool>::from_stack
1 parent e30b425 commit f5982bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/conversion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ impl<'lua> FromLua<'lua> for bool {
452452
}
453453
}
454454

455+
#[inline]
455456
unsafe fn from_stack(idx: c_int, lua: &'lua Lua) -> Result<Self> {
456457
Ok(ffi::lua_toboolean(lua.state(), idx) != 0)
457458
}

0 commit comments

Comments
 (0)