Skip to content

Commit

Permalink
fix clone issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Sep 18, 2023
1 parent 2b952fd commit 0fe90be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plonky2x/src/frontend/hash/keccak/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl<L: PlonkParameters<D>, const D: usize> CircuitBuilder<L, D> {
_phantom: PhantomData::<L>,
};
let output = generator.output;
self.add_simple_generator(generator);
self.add_simple_generator(generator.clone());
output
}

Expand All @@ -33,7 +33,7 @@ impl<L: PlonkParameters<D>, const D: usize> CircuitBuilder<L, D> {
length: Some(length),
_phantom: PhantomData::<L>,
};
self.add_simple_generator(generator);
self.add_simple_generator(generator.clone());
generator.output
}
}
Expand Down

0 comments on commit 0fe90be

Please sign in to comment.