From 32070de1243e949321904a1839e8881f14ac5469 Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:37:22 -0700 Subject: [PATCH] chore: impl `AsRef, AsMut` for `BaseConfig` to self --- halo2-base/src/gates/circuit/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/halo2-base/src/gates/circuit/mod.rs b/halo2-base/src/gates/circuit/mod.rs index e57c93db..12372649 100644 --- a/halo2-base/src/gates/circuit/mod.rs +++ b/halo2-base/src/gates/circuit/mod.rs @@ -215,3 +215,15 @@ impl CircuitBuilderStage { matches!(self, CircuitBuilderStage::Prover) } } + +impl AsRef> for BaseConfig { + fn as_ref(&self) -> &BaseConfig { + self + } +} + +impl AsMut> for BaseConfig { + fn as_mut(&mut self) -> &mut BaseConfig { + self + } +}