Skip to content

Commit 0c4206c

Browse files
committed
Bump min Rust version to 1.88
1 parent a985dc7 commit 0c4206c

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mlua"
33
version = "0.12.0-dev.1" # remember to update mlua_derive
44
authors = ["Aleksandr Orlenko <zxteam@pm.me>", "kyren <catherine@kyju.org>"]
5-
rust-version = "1.85.0"
5+
rust-version = "1.88"
66
edition = "2021"
77
repository = "https://github.com/mlua-rs/mlua"
88
documentation = "https://docs.rs/mlua"
@@ -61,7 +61,6 @@ erased-serde = { version = "0.4", optional = true }
6161
serde-value = { version = "0.7", optional = true }
6262
parking_lot = { version = "0.12", features = ["arc_lock"] }
6363
anyhow = { version = "1.0", optional = true }
64-
rustversion = "1.0"
6564
libc = "0.2"
6665

6766
ffi = { package = "mlua-sys", version = "0.10.0", path = "mlua-sys" }

mlua-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mlua-sys"
33
version = "0.10.0"
44
authors = ["Aleksandr Orlenko <zxteam@pm.me>"]
5-
rust-version = "1.85"
5+
rust-version = "1.88"
66
edition = "2024"
77
repository = "https://github.com/mlua-rs/mlua"
88
documentation = "https://docs.rs/mlua-sys"

src/memory.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)