Skip to content

Commit 4ce66ff

Browse files
authored
Chore: update Rust version to v1.87 (#93)
* Updated Rust version to v1.87 * Fix lint
1 parent 8aa527b commit 4ce66ff

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88
[workspace.package]
99
authors = ["Aurora Labs <hello@aurora.dev>"]
1010
edition = "2021"
11-
version = "2.1.0"
11+
version = "2.1.1"
1212
description = "Aurora Ethereum Virtual Machine implementation written in pure Rust"
1313
categories = ["no-std", "compilers", "cryptography::cryptocurrencies"]
1414
keywords = ["aurora-evm", "evm", "ethereum", "blockchain", "no_std"]

evm/src/core/memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Memory {
3636

3737
/// Get the length of the current memory range.
3838
#[must_use]
39-
pub fn len(&self) -> usize {
39+
pub const fn len(&self) -> usize {
4040
self.data.len()
4141
}
4242

@@ -48,7 +48,7 @@ impl Memory {
4848

4949
/// Return true if current effective memory range is zero.
5050
#[must_use]
51-
pub fn is_empty(&self) -> bool {
51+
pub const fn is_empty(&self) -> bool {
5252
self.len() == 0
5353
}
5454

evm/src/core/stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ impl Stack {
3030
/// Stack length.
3131
#[inline]
3232
#[must_use]
33-
pub fn len(&self) -> usize {
33+
pub const fn len(&self) -> usize {
3434
self.data.len()
3535
}
3636

3737
/// Whether the stack is empty.
3838
#[inline]
3939
#[must_use]
40-
pub fn is_empty(&self) -> bool {
40+
pub const fn is_empty(&self) -> bool {
4141
self.data.is_empty()
4242
}
4343

evm/src/core/valids.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ impl Valids {
3232
/// code bytes.
3333
#[inline]
3434
#[must_use]
35-
pub fn len(&self) -> usize {
35+
pub const fn len(&self) -> usize {
3636
self.0.len()
3737
}
3838

3939
/// Returns true if the valids list is empty
4040
#[inline]
4141
#[must_use]
42-
pub fn is_empty(&self) -> bool {
42+
pub const fn is_empty(&self) -> bool {
4343
self.len() == 0
4444
}
4545

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.86.0"
2+
channel = "1.87.0"
33
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)