From 0fe90bee77c5e9715aa54354effe8533845e8db1 Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Mon, 18 Sep 2023 14:17:48 -0700 Subject: [PATCH] fix clone issue --- plonky2x/src/frontend/hash/keccak/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }