File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " td_rlua"
3
- version = " 0.3.3 "
3
+ version = " 0.3.4 "
4
4
authors = [
" tickbh <[email protected] >" ]
5
5
description = " Zero-cost high-level lua 5.3 wrapper for Rust"
6
6
repository = " https://github.com/tickbh/td_rlua"
Original file line number Diff line number Diff line change 1
1
use std:: ffi:: CString ;
2
- use std:: mem;
3
2
4
3
use libc;
5
4
use td_clua;
@@ -21,7 +20,7 @@ macro_rules! integer_impl(
21
20
22
21
impl LuaRead for $t {
23
22
fn lua_read_with_pop_impl( lua: * mut lua_State, index: i32 , _pop: i32 ) -> Option <$t> {
24
- let mut success = unsafe { mem :: MaybeUninit :: zeroed ( ) . assume_init ( ) } ;
23
+ let mut success = 0 ;
25
24
let val = unsafe { td_clua:: lua_tointegerx( lua, index, & mut success) } ;
26
25
match success {
27
26
0 => None ,
@@ -53,7 +52,7 @@ macro_rules! numeric_impl(
53
52
54
53
impl LuaRead for $t {
55
54
fn lua_read_with_pop_impl( lua: * mut lua_State, index: i32 , _pop: i32 ) -> Option <$t> {
56
- let mut success = unsafe { mem :: MaybeUninit :: zeroed ( ) . assume_init ( ) } ;
55
+ let mut success = 0 ;
57
56
let val = unsafe { td_clua:: lua_tonumberx( lua, index, & mut success) } ;
58
57
match success {
59
58
0 => None ,
You can’t perform that action at this time.
0 commit comments