From dff950c50208cfb2f3745093c022556e1c3e2b80 Mon Sep 17 00:00:00 2001 From: Daniel Lubarov Date: Tue, 20 Jul 2021 09:27:35 -0700 Subject: [PATCH] No Copy on ReducingFactor (#110) It feels a little dangerous; would be easy to "fork" one accidentally. We already clone explicitly, this just enforces that in the future. --- src/util/scaling.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/scaling.rs b/src/util/scaling.rs index be339784..9409d49c 100644 --- a/src/util/scaling.rs +++ b/src/util/scaling.rs @@ -16,7 +16,7 @@ use crate::polynomial::polynomial::PolynomialCoeffs; /// This struct abstract away these operations by implementing Horner's method and keeping track /// of the number of multiplications by `a` to compute the scaling factor. /// See https://github.com/mir-protocol/plonky2/pull/69 for more details and discussions. -#[derive(Debug, Copy, Clone)] +#[derive(Debug, Clone)] pub struct ReducingFactor { base: F, count: u64, @@ -79,7 +79,7 @@ impl ReducingFactor { } } -#[derive(Debug, Copy, Clone)] +#[derive(Debug, Clone)] pub struct ReducingFactorTarget { base: ExtensionTarget, count: u64,