diff --git a/plonky2x/src/frontend/hash/keccak/mod.rs b/plonky2x/src/frontend/hash/keccak/mod.rs index cec347fb4..1bbf5a32b 100644 --- a/plonky2x/src/frontend/hash/keccak/mod.rs +++ b/plonky2x/src/frontend/hash/keccak/mod.rs @@ -18,7 +18,7 @@ impl, const D: usize> CircuitBuilder { _phantom: PhantomData::, }; let output = generator.output; - self.add_simple_generator(generator); + self.add_simple_generator(generator.clone()); output } @@ -33,7 +33,7 @@ impl, const D: usize> CircuitBuilder { length: Some(length), _phantom: PhantomData::, }; - self.add_simple_generator(generator); + self.add_simple_generator(generator.clone()); generator.output } }