Skip to content

Commit 97bd001

Browse files
committed
more constant values
1 parent 52e14c3 commit 97bd001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/lean_vm/src/isa/bytecode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ impl Bytecode {
3636
}
3737

3838
/// Get the number of instructions
39-
pub fn len(&self) -> usize {
39+
pub const fn len(&self) -> usize {
4040
self.instructions.len()
4141
}
4242

4343
/// Check if bytecode is empty
44-
pub fn is_empty(&self) -> bool {
44+
pub const fn is_empty(&self) -> bool {
4545
self.instructions.is_empty()
4646
}
4747
}

0 commit comments

Comments
 (0)