Fix build warnings
This commit is contained in:
parent
581ad354a7
commit
52bf23c5ce
|
@ -1781,11 +1781,7 @@ mod test {
|
||||||
|
|
||||||
let value = Some(true);
|
let value = Some(true);
|
||||||
let b = AllocatedBit::alloc(&mut cs, Some(true)).unwrap();
|
let b = AllocatedBit::alloc(&mut cs, Some(true)).unwrap();
|
||||||
let allocated_value = AllocatedBit::alloc_conditionally(
|
AllocatedBit::alloc_conditionally(cs.namespace(|| "alloc_conditionally"), value, &b)
|
||||||
cs.namespace(|| "alloc_conditionally"),
|
|
||||||
value,
|
|
||||||
&b,
|
|
||||||
)
|
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
assert!(!cs.is_satisfied());
|
assert!(!cs.is_satisfied());
|
||||||
|
@ -1798,21 +1794,13 @@ mod test {
|
||||||
//check with false bit
|
//check with false bit
|
||||||
let mut cs = TestConstraintSystem::<Bls12>::new();
|
let mut cs = TestConstraintSystem::<Bls12>::new();
|
||||||
let b1 = AllocatedBit::alloc(&mut cs, Some(false)).unwrap();
|
let b1 = AllocatedBit::alloc(&mut cs, Some(false)).unwrap();
|
||||||
let allocated_value = AllocatedBit::alloc_conditionally(
|
AllocatedBit::alloc_conditionally(cs.namespace(|| "alloc_conditionally"), value, &b1)
|
||||||
cs.namespace(|| "alloc_conditionally"),
|
|
||||||
value,
|
|
||||||
&b1,
|
|
||||||
)
|
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
//check with true bit
|
//check with true bit
|
||||||
let mut cs = TestConstraintSystem::<Bls12>::new();
|
let mut cs = TestConstraintSystem::<Bls12>::new();
|
||||||
let b2 = AllocatedBit::alloc(&mut cs, Some(true)).unwrap();
|
let b2 = AllocatedBit::alloc(&mut cs, Some(true)).unwrap();
|
||||||
let allocated_value = AllocatedBit::alloc_conditionally(
|
AllocatedBit::alloc_conditionally(cs.namespace(|| "alloc_conditionally"), value, &b2)
|
||||||
cs.namespace(|| "alloc_conditionally"),
|
|
||||||
value,
|
|
||||||
&b2,
|
|
||||||
)
|
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
assert!(cs.is_satisfied());
|
assert!(cs.is_satisfied());
|
||||||
|
|
Loading…
Reference in New Issue