Skip to content

Commit

Permalink
Fix clippy const function error
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharsamocha7 committed Nov 28, 2024
1 parent c2ef3ac commit a0cce5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/prover/src/constraint_framework/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl TraceLocationAllocator {
}
}

pub fn preprocessed_columns(&self) -> &HashMap<PreprocessedColumn, usize> {
pub const fn preprocessed_columns(&self) -> &HashMap<PreprocessedColumn, usize> {
&self.preprocessed_columns
}

Expand Down
2 changes: 1 addition & 1 deletion crates/prover/src/constraint_framework/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub struct RelationEntry<'a, F: Clone, EF: RelationEFTraitBound<F>, R: Relation<
values: &'a [F],
}
impl<'a, F: Clone, EF: RelationEFTraitBound<F>, R: Relation<F, EF>> RelationEntry<'a, F, EF, R> {
pub fn new(relation: &'a R, multiplicity: EF, values: &'a [F]) -> Self {
pub const fn new(relation: &'a R, multiplicity: EF, values: &'a [F]) -> Self {
Self {
relation,
multiplicity,
Expand Down

0 comments on commit a0cce5c

Please sign in to comment.