@@ -35,7 +35,7 @@ mod tests {
3535 fn test_fq_add ( ) {
3636 let a = random_fq ( ) ;
3737 let b = random_fq ( ) ;
38- let circuit = Fq :: add ( wires_set_from_fq ( a. clone ( ) ) , wires_set_from_fq ( b. clone ( ) ) ) ;
38+ let circuit = Fq :: add ( wires_set_from_fq ( a) , wires_set_from_fq ( b) ) ;
3939 circuit. gate_counts ( ) . print ( ) ;
4040 for mut gate in circuit. 1 {
4141 gate. evaluate ( ) ;
@@ -48,7 +48,7 @@ mod tests {
4848 fn test_fq_add_constant ( ) {
4949 let a = random_fq ( ) ;
5050 let b = random_fq ( ) ;
51- let circuit = Fq :: add_constant ( wires_set_from_fq ( a. clone ( ) ) , b. clone ( ) ) ;
51+ let circuit = Fq :: add_constant ( wires_set_from_fq ( a) , b) ;
5252 circuit. gate_counts ( ) . print ( ) ;
5353 for mut gate in circuit. 1 {
5454 gate. evaluate ( ) ;
@@ -60,7 +60,7 @@ mod tests {
6060 #[ test]
6161 fn test_fq_neg ( ) {
6262 let a = random_fq ( ) ;
63- let circuit = Fq :: neg ( wires_set_from_fq ( a. clone ( ) ) ) ;
63+ let circuit = Fq :: neg ( wires_set_from_fq ( a) ) ;
6464 circuit. gate_counts ( ) . print ( ) ;
6565 for mut gate in circuit. 1 {
6666 gate. evaluate ( ) ;
@@ -73,7 +73,7 @@ mod tests {
7373 fn test_fq_sub ( ) {
7474 let a = random_fq ( ) ;
7575 let b = random_fq ( ) ;
76- let circuit = Fq :: sub ( wires_set_from_fq ( a. clone ( ) ) , wires_set_from_fq ( b. clone ( ) ) ) ;
76+ let circuit = Fq :: sub ( wires_set_from_fq ( a) , wires_set_from_fq ( b) ) ;
7777 circuit. gate_counts ( ) . print ( ) ;
7878 for mut gate in circuit. 1 {
7979 gate. evaluate ( ) ;
@@ -85,7 +85,7 @@ mod tests {
8585 #[ test]
8686 fn test_fq_double ( ) {
8787 let a = random_fq ( ) ;
88- let circuit = Fq :: double ( wires_set_from_fq ( a. clone ( ) ) ) ;
88+ let circuit = Fq :: double ( wires_set_from_fq ( a) ) ;
8989 circuit. gate_counts ( ) . print ( ) ;
9090 for mut gate in circuit. 1 {
9191 gate. evaluate ( ) ;
@@ -97,7 +97,7 @@ mod tests {
9797 #[ test]
9898 fn test_fq_half ( ) {
9999 let a = random_fq ( ) ;
100- let circuit = Fq :: half ( wires_set_from_fq ( a. clone ( ) ) ) ;
100+ let circuit = Fq :: half ( wires_set_from_fq ( a) ) ;
101101 circuit. gate_counts ( ) . print ( ) ;
102102 for mut gate in circuit. 1 {
103103 gate. evaluate ( ) ;
@@ -109,7 +109,7 @@ mod tests {
109109 #[ test]
110110 fn test_fq_triple ( ) {
111111 let a = random_fq ( ) ;
112- let circuit = Fq :: triple ( wires_set_from_fq ( a. clone ( ) ) ) ;
112+ let circuit = Fq :: triple ( wires_set_from_fq ( a) ) ;
113113 circuit. gate_counts ( ) . print ( ) ;
114114 for mut gate in circuit. 1 {
115115 gate. evaluate ( ) ;
@@ -122,7 +122,7 @@ mod tests {
122122 fn test_fq_mul ( ) {
123123 let a = random_fq ( ) ;
124124 let b = random_fq ( ) ;
125- let circuit = Fq :: mul ( wires_set_from_fq ( a. clone ( ) ) , wires_set_from_fq ( b. clone ( ) ) ) ;
125+ let circuit = Fq :: mul ( wires_set_from_fq ( a) , wires_set_from_fq ( b) ) ;
126126 circuit. gate_counts ( ) . print ( ) ;
127127 for mut gate in circuit. 1 {
128128 gate. evaluate ( ) ;
@@ -151,7 +151,7 @@ mod tests {
151151 fn test_fq_mul_by_constant ( ) {
152152 let a = random_fq ( ) ;
153153 let b = random_fq ( ) ;
154- let circuit = Fq :: mul_by_constant ( wires_set_from_fq ( a. clone ( ) ) , b. clone ( ) ) ;
154+ let circuit = Fq :: mul_by_constant ( wires_set_from_fq ( a) , b) ;
155155 circuit. gate_counts ( ) . print ( ) ;
156156 for mut gate in circuit. 1 {
157157 gate. evaluate ( ) ;
@@ -163,7 +163,7 @@ mod tests {
163163 #[ test]
164164 fn test_fq_square ( ) {
165165 let a = random_fq ( ) ;
166- let circuit = Fq :: square ( wires_set_from_fq ( a. clone ( ) ) ) ;
166+ let circuit = Fq :: square ( wires_set_from_fq ( a) ) ;
167167 circuit. gate_counts ( ) . print ( ) ;
168168 for mut gate in circuit. 1 {
169169 gate. evaluate ( ) ;
@@ -175,7 +175,7 @@ mod tests {
175175 #[ test]
176176 fn test_fq_inverse ( ) {
177177 let a = random_fq ( ) ;
178- let circuit = Fq :: inverse ( wires_set_from_fq ( a. clone ( ) ) ) ;
178+ let circuit = Fq :: inverse ( wires_set_from_fq ( a) ) ;
179179 circuit. gate_counts ( ) . print ( ) ;
180180 for mut gate in circuit. 1 {
181181 gate. evaluate ( ) ;
@@ -187,7 +187,7 @@ mod tests {
187187 #[ test]
188188 fn test_fq_div6 ( ) {
189189 let a = random_fq ( ) ;
190- let circuit = Fq :: div6 ( wires_set_from_fq ( a. clone ( ) ) ) ;
190+ let circuit = Fq :: div6 ( wires_set_from_fq ( a) ) ;
191191 circuit. gate_counts ( ) . print ( ) ;
192192 for mut gate in circuit. 1 {
193193 gate. evaluate ( ) ;
0 commit comments