Skip to content

Commit

Permalink
fix: change &Vec<> params to slices &[]
Browse files Browse the repository at this point in the history
  • Loading branch information
grjte committed Aug 2, 2022
1 parent 438951e commit 91a8598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assembly/src/parsers/io_ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub fn parse_storew(
/// values (represented by 32-bit limbs), divides one value by another, and injects the quotient
/// and the remainder into the advice tape.
pub fn parse_adv_inject(
span_ops: &mut Vec<Operation>,
span_ops: &mut [Operation],
op: &Token,
decorators: &mut DecoratorList,
) -> Result<(), AssemblyError> {
Expand Down
2 changes: 1 addition & 1 deletion core/src/program/blocks/span_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ pub fn get_span_op_group_count(op_batches: &[OpBatch]) -> usize {
/// - Assert the decorator list is in ascending order.
/// - Assert the last op index in decorator list is less than the number of operations.
#[cfg(debug_assertions)]
fn validate_decorators(operations: &Vec<Operation>, decorators: &DecoratorList) {
fn validate_decorators(operations: &[Operation], decorators: &DecoratorList) {
if !decorators.is_empty() {
// check if decorator list is sorted
for i in 0..(decorators.len() - 1) {
Expand Down

0 comments on commit 91a8598

Please sign in to comment.