Skip to content

Commit 8d4f27d

Browse files
committed
core: small renaming
1 parent 1c734a7 commit 8d4f27d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

crates/leanVm/src/core.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ use crate::{
1414
};
1515

1616
#[derive(Debug)]
17-
pub struct VirtualMachine<PERM16, PERM24> {
17+
pub struct VirtualMachine<Perm16, Perm24> {
1818
pub(crate) run_context: RunContext,
1919
pub memory_manager: MemoryManager,
20-
pub poseidon2_16: PERM16,
21-
pub poseidon2_24: PERM24,
20+
pub poseidon2_16: Perm16,
21+
pub poseidon2_24: Perm24,
2222
pub(crate) program: Program,
2323
}
2424

25-
impl<PERM16, PERM24> VirtualMachine<PERM16, PERM24> {
26-
pub fn new(poseidon2_16: PERM16, poseidon2_24: PERM24) -> Self {
25+
impl<Perm16, Perm24> VirtualMachine<Perm16, Perm24> {
26+
pub fn new(poseidon2_16: Perm16, poseidon2_24: Perm24) -> Self {
2727
Self {
2828
run_context: RunContext::default(),
2929
memory_manager: MemoryManager::default(),
@@ -149,8 +149,8 @@ impl<PERM16, PERM24> VirtualMachine<PERM16, PERM24> {
149149
/// to prepare for the next instruction.
150150
pub fn run_instruction(&mut self, instruction: &Instruction) -> Result<(), VirtualMachineError>
151151
where
152-
PERM16: Permutation<[F; 2 * DIMENSION]>,
153-
PERM24: Permutation<[F; 3 * DIMENSION]>,
152+
Perm16: Permutation<[F; 2 * DIMENSION]>,
153+
Perm24: Permutation<[F; 3 * DIMENSION]>,
154154
{
155155
// Execute the instruction.
156156
instruction.execute(

0 commit comments

Comments
 (0)