diff --git a/crates/circuits/poseidon2-air/src/config.rs b/crates/circuits/poseidon2-air/src/config.rs index 37a87d07e0..393399aac6 100644 --- a/crates/circuits/poseidon2-air/src/config.rs +++ b/crates/circuits/poseidon2-air/src/config.rs @@ -4,10 +4,7 @@ use p3_poseidon2::ExternalLayerConstants; use p3_poseidon2_air::RoundConstants; use super::{ - // BABYBEAR_BEGIN_EXT_CONSTS, BABYBEAR_END_EXT_CONSTS, BABYBEAR_PARTIAL_CONSTS, - BABY_BEAR_POSEIDON2_HALF_FULL_ROUNDS, - BABY_BEAR_POSEIDON2_PARTIAL_ROUNDS, - POSEIDON2_WIDTH, + BABY_BEAR_POSEIDON2_HALF_FULL_ROUNDS, BABY_BEAR_POSEIDON2_PARTIAL_ROUNDS, POSEIDON2_WIDTH, }; use crate::{BABYBEAR_BEGIN_EXT_CONSTS, BABYBEAR_END_EXT_CONSTS, BABYBEAR_PARTIAL_CONSTS}; @@ -33,12 +30,12 @@ pub struct Poseidon2Constants { pub ending_full_round_constants: [[F; POSEIDON2_WIDTH]; BABY_BEAR_POSEIDON2_HALF_FULL_ROUNDS], } -impl Into> for Poseidon2Constants { - fn into(self) -> Plonky3RoundConstants { +impl From> for Plonky3RoundConstants { + fn from(constants: Poseidon2Constants) -> Self { Plonky3RoundConstants::new( - self.beginning_full_round_constants, - self.partial_round_constants, - self.ending_full_round_constants, + constants.beginning_full_round_constants, + constants.partial_round_constants, + constants.ending_full_round_constants, ) } }