mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-23 12:13:48 +01:00
Use operator syntax
eliminate a few redundant references
This commit is contained in:
committed by
Pratyush Mishra
parent
b42d5f8d36
commit
f1d8b122fc
@@ -205,7 +205,7 @@ impl UInt32 {
|
||||
all_constants = false;
|
||||
|
||||
// Add coeff * bit_gadget
|
||||
lc = lc + (coeff, bit.get_variable());
|
||||
lc += (coeff, bit.get_variable());
|
||||
},
|
||||
Boolean::Not(ref bit) => {
|
||||
all_constants = false;
|
||||
@@ -215,7 +215,7 @@ impl UInt32 {
|
||||
},
|
||||
Boolean::Constant(bit) => {
|
||||
if bit {
|
||||
lc = lc + (coeff, CS::one());
|
||||
lc += (coeff, CS::one());
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user