We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77eb73a commit 6382baaCopy full SHA for 6382baa
src/util.rs
@@ -120,7 +120,7 @@ where
120
ffi::lua_pop(state, 1);
121
122
let function = mem::replace(&mut (*params).function, mem::uninitialized());
123
- mem::replace(&mut (*params).result, function(state));
+ ptr::write(&mut (*params).result, function(state));
124
// params now has function uninitialied and result initialized
125
126
if (*params).nresults == ffi::LUA_MULTRET {
0 commit comments