Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaAlkhodairy committed Dec 26, 2024
1 parent c20584d commit aa8e9a4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions crates/circuits/poseidon2-air/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand All @@ -33,12 +30,12 @@ pub struct Poseidon2Constants<F> {
pub ending_full_round_constants: [[F; POSEIDON2_WIDTH]; BABY_BEAR_POSEIDON2_HALF_FULL_ROUNDS],
}

impl<F: Field> Into<Plonky3RoundConstants<F>> for Poseidon2Constants<F> {
fn into(self) -> Plonky3RoundConstants<F> {
impl<F: Field> From<Poseidon2Constants<F>> for Plonky3RoundConstants<F> {
fn from(constants: Poseidon2Constants<F>) -> 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,
)
}
}
Expand Down

0 comments on commit aa8e9a4

Please sign in to comment.