File tree Expand file tree Collapse file tree 3 files changed +2
-16
lines changed
Expand file tree Collapse file tree 3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 22name = " mlua"
33version = " 0.12.0-dev.1" # remember to update mlua_derive
44authors = [" Aleksandr Orlenko <zxteam@pm.me>" , " kyren <catherine@kyju.org>" ]
5- rust-version = " 1.85.0 "
5+ rust-version = " 1.88 "
66edition = " 2021"
77repository = " https://github.com/mlua-rs/mlua"
88documentation = " https://docs.rs/mlua"
@@ -61,7 +61,6 @@ erased-serde = { version = "0.4", optional = true }
6161serde-value = { version = " 0.7" , optional = true }
6262parking_lot = { version = " 0.12" , features = [" arc_lock" ] }
6363anyhow = { version = " 1.0" , optional = true }
64- rustversion = " 1.0"
6564libc = " 0.2"
6665
6766ffi = { package = " mlua-sys" , version = " 0.10.0" , path = " mlua-sys" }
Original file line number Diff line number Diff line change 22name = " mlua-sys"
33version = " 0.10.0"
44authors = [" Aleksandr Orlenko <zxteam@pm.me>" ]
5- rust-version = " 1.85 "
5+ rust-version = " 1.88 "
66edition = " 2024"
77repository = " https://github.com/mlua-rs/mlua"
88documentation = " https://docs.rs/mlua-sys"
Original file line number Diff line number Diff line change @@ -28,9 +28,7 @@ impl MemoryState {
2828 }
2929
3030 #[ cfg( not( feature = "luau" ) ) ]
31- #[ rustversion:: since( 1.85 ) ]
3231 #[ inline]
33- #[ allow( clippy:: incompatible_msrv) ]
3432 pub ( crate ) unsafe fn get ( state : * mut ffi:: lua_State ) -> * mut Self {
3533 let mut mem_state = ptr:: null_mut ( ) ;
3634 if !ptr:: fn_addr_eq ( ffi:: lua_getallocf ( state, & mut mem_state) , ALLOCATOR ) {
@@ -39,17 +37,6 @@ impl MemoryState {
3937 mem_state as * mut MemoryState
4038 }
4139
42- #[ cfg( not( feature = "luau" ) ) ]
43- #[ rustversion:: before( 1.85 ) ]
44- #[ inline]
45- pub ( crate ) unsafe fn get ( state : * mut ffi:: lua_State ) -> * mut Self {
46- let mut mem_state = ptr:: null_mut ( ) ;
47- if ffi:: lua_getallocf ( state, & mut mem_state) != ALLOCATOR {
48- mem_state = ptr:: null_mut ( ) ;
49- }
50- mem_state as * mut MemoryState
51- }
52-
5340 #[ inline]
5441 pub ( crate ) fn used_memory ( & self ) -> usize {
5542 self . used_memory as usize
You can’t perform that action at this time.
0 commit comments