Skip to content

Commit

Permalink
chore: impl AsRef, AsMut for BaseConfig to self
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Oct 1, 2023
1 parent 8a5d469 commit 32070de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions halo2-base/src/gates/circuit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,15 @@ impl CircuitBuilderStage {
matches!(self, CircuitBuilderStage::Prover)
}
}

impl<F: ScalarField> AsRef<BaseConfig<F>> for BaseConfig<F> {
fn as_ref(&self) -> &BaseConfig<F> {
self
}
}

impl<F: ScalarField> AsMut<BaseConfig<F>> for BaseConfig<F> {
fn as_mut(&mut self) -> &mut BaseConfig<F> {
self
}
}

0 comments on commit 32070de

Please sign in to comment.