Warning cleanup

This commit is contained in:
Eirik Ogilvie-Wigley 2019-08-16 23:06:18 -06:00
parent fc3dd8198b
commit e12d315ab9
3 changed files with 4 additions and 4 deletions

View File

@ -374,7 +374,7 @@ impl JubjubBls12 {
let mut pedersen_circuit_generators = vec![];
// Process each segment
for mut gen in tmp_params.pedersen_hash_generators.iter().cloned() {
for gen in tmp_params.pedersen_hash_generators.iter().cloned() {
let mut gen = montgomery::Point::from_edwards(&gen, &tmp_params);
let mut windows = vec![];
for _ in 0..tmp_params.pedersen_hash_chunks_per_generator() {

View File

@ -206,7 +206,7 @@ mod tests {
#[should_panic]
fn add_panics_on_overflow() {
let v = Amount(MAX_MONEY);
let sum = v + Amount(1);
let _sum = v + Amount(1);
}
#[test]
@ -220,7 +220,7 @@ mod tests {
#[should_panic]
fn sub_panics_on_underflow() {
let v = Amount(-MAX_MONEY);
let diff = v - Amount(1);
let _diff = v - Amount(1);
}
#[test]

View File

@ -163,7 +163,7 @@ mod test {
for length in 0..751 {
for _ in 0..5 {
let mut input: Vec<bool> = (0..length).map(|_| rng.next_u32() % 2 != 0).collect();
let input: Vec<bool> = (0..length).map(|_| rng.next_u32() % 2 != 0).collect();
let mut cs = TestConstraintSystem::<Bls12>::new();