File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -287,10 +287,7 @@ macro_rules! impl_tuple {
287
287
}
288
288
289
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
- }
290
+ unsafe fn from_stack_multi( _nvals: c_int, _lua: & RawLua ) -> Result <Self > {
294
291
Ok ( ( ) )
295
292
}
296
293
}
Original file line number Diff line number Diff line change @@ -128,10 +128,6 @@ pub trait FromLuaMulti: Sized {
128
128
for idx in 0 ..nvals {
129
129
values. push_back ( lua. stack_value ( -nvals + idx, None ) ) ;
130
130
}
131
- if nvals > 0 {
132
- // It's safe to clear the stack as all references moved to ref thread
133
- ffi:: lua_pop ( lua. state ( ) , nvals) ;
134
- }
135
131
Self :: from_lua_multi ( values, lua. lua ( ) )
136
132
}
137
133
You can’t perform that action at this time.
0 commit comments