Skip to content

Commit 0dcd659

Browse files
committed
rust: bump msv
1 parent 4b8e628 commit 0dcd659

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace.package]
22
version = "0.1.0"
33
edition = "2024"
4-
rust-version = "1.85"
4+
rust-version = "1.87"
55
license = "MIT OR Apache-2.0"
66

77
[workspace]

crates/leanVm/src/memory/manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl MemoryManager {
1515
/// # Returns
1616
/// * `usize` — the number of segments allocated in `self.memory`.
1717
#[must_use]
18-
pub fn num_segments(&self) -> usize {
18+
pub const fn num_segments(&self) -> usize {
1919
self.memory.data.len()
2020
}
2121

0 commit comments

Comments
 (0)