We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FromLuaMulti::from_stack_multi
1 parent ec227f9 commit 5c54361Copy full SHA for 5c54361
2 files changed
src/multi.rs
@@ -287,10 +287,7 @@ macro_rules! impl_tuple {
287
}
288
289
#[inline]
290
- unsafe fn from_stack_multi(nvals: c_int, lua: &RawLua) -> Result<Self> {
291
- if nvals > 0 {
292
- ffi::lua_pop(lua.state(), nvals);
293
- }
+ unsafe fn from_stack_multi(_nvals: c_int, _lua: &RawLua) -> Result<Self> {
294
Ok(())
295
296
src/traits.rs
@@ -128,10 +128,6 @@ pub trait FromLuaMulti: Sized {
128
for idx in 0..nvals {
129
values.push_back(lua.stack_value(-nvals + idx, None));
130
131
132
- // It's safe to clear the stack as all references moved to ref thread
133
134
135
Self::from_lua_multi(values, lua.lua())
136
137
0 commit comments