Skip to content

Commit b5729fa

Browse files
committed
fmt
1 parent 822874e commit b5729fa

File tree

13 files changed

+20
-19
lines changed

13 files changed

+20
-19
lines changed

crates/lean_vm/src/core/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ pub const POSEIDON_24_NULL_HASH_PTR: usize = 5;
2525
pub const PUBLIC_INPUT_START: usize = 6 * 8;
2626

2727
/// Maximum memory size for VM runner
28-
pub const MAX_RUNNER_MEMORY_SIZE: usize = 1 << 20;
28+
pub const MAX_RUNNER_MEMORY_SIZE: usize = 1 << 20;

crates/lean_vm/src/core/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ pub mod constants;
44
pub mod types;
55

66
pub use constants::*;
7-
pub use types::*;
7+
pub use types::*;

crates/lean_vm/src/core/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ pub type F = KoalaBear;
99
pub type EF = QuinticExtensionFieldKB;
1010

1111
/// Location in source code for debugging
12-
pub type LocationInSourceCode = usize;
12+
pub type LocationInSourceCode = usize;

crates/lean_vm/src/diagnostics/error.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
33
use crate::core::F;
44
use crate::execution::Memory;
5-
use crate::witness::{WitnessDotProduct, WitnessMultilinearEval, WitnessPoseidon16, WitnessPoseidon24};
5+
use crate::witness::{
6+
WitnessDotProduct, WitnessMultilinearEval, WitnessPoseidon16, WitnessPoseidon24,
7+
};
68
use thiserror::Error;
79

810
/// Errors that can occur during VM execution
@@ -56,4 +58,3 @@ impl ExecutionResult {
5658
true
5759
}
5860
}
59-

crates/lean_vm/src/execution/memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Memory management for the VM
22
3-
use crate::core::{EF, F, DIMENSION, VECTOR_LEN, MAX_RUNNER_MEMORY_SIZE};
3+
use crate::core::{DIMENSION, EF, F, MAX_RUNNER_MEMORY_SIZE, VECTOR_LEN};
44
use crate::diagnostics::RunnerError;
55
use p3_field::{BasedVectorSpace, PrimeCharacteristicRing};
66
use rayon::prelude::*;
@@ -156,4 +156,4 @@ impl Memory {
156156
pub fn slice(&self, start: usize, len: usize) -> Result<Vec<F>, RunnerError> {
157157
(0..len).map(|i| self.get(start + i)).collect()
158158
}
159-
}
159+
}

crates/lean_vm/src/execution/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ pub mod runner;
66

77
pub use context::*;
88
pub use memory::*;
9-
pub use runner::*;
9+
pub use runner::*;

crates/lean_vm/src/isa/bytecode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Bytecode representation and management
22
3-
use super::operands::Hint;
43
use super::Instruction;
4+
use super::operands::Hint;
55
use std::collections::BTreeMap;
66
use std::fmt::{Display, Formatter};
77

@@ -56,4 +56,4 @@ impl Display for Bytecode {
5656
}
5757
Ok(())
5858
}
59-
}
59+
}

crates/lean_vm/src/isa/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
33
pub mod bytecode;
44
pub mod instruction;
5-
pub mod operation;
65
pub mod operands;
6+
pub mod operation;
77

88
pub use bytecode::*;
99
pub use instruction::*;
10-
pub use operation::*;
1110
pub use operands::*;
11+
pub use operation::*;
1212

1313
/// String label for bytecode locations
14-
pub type Label = String;
14+
pub type Label = String;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! VM operand types and addressing modes
22
3+
pub mod hint;
34
pub mod mem_or_constant;
45
pub mod mem_or_fp;
56
pub mod mem_or_fp_or_constant;
6-
pub mod hint;
77

8+
pub use hint::*;
89
pub use mem_or_constant::*;
910
pub use mem_or_fp::*;
1011
pub use mem_or_fp_or_constant::*;
11-
pub use hint::*;

crates/lean_vm/src/isa/operation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ impl Display for Operation {
4242
Self::Mul => write!(f, "x"),
4343
}
4444
}
45-
}
45+
}

0 commit comments

Comments
 (0)