Browse Source

Fix linter errors

master
ValarDragon 4 years ago
committed by Pratyush Mishra
parent
commit
3cb1ed06d6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      r1cs-std/src/fields/mod.rs

+ 2
- 2
r1cs-std/src/fields/mod.rs

@ -1,4 +1,4 @@
use algebra::{Field, fields::BitIterator};
use algebra::{fields::BitIterator, Field};
use core::fmt::Debug; use core::fmt::Debug;
use r1cs_core::{ConstraintSystem, SynthesisError}; use r1cs_core::{ConstraintSystem, SynthesisError};
@ -227,7 +227,7 @@ pub trait FieldGadget:
fn pow_by_constant<S: AsRef<[u64]>, CS: ConstraintSystem<ConstraintF>>( fn pow_by_constant<S: AsRef<[u64]>, CS: ConstraintSystem<ConstraintF>>(
&self, &self,
mut cs: CS, mut cs: CS,
exp: S
exp: S,
) -> Result<Self, SynthesisError> { ) -> Result<Self, SynthesisError> {
let mut res = Self::one(cs.ns(|| "Alloc result"))?; let mut res = Self::one(cs.ns(|| "Alloc result"))?;
let mut found_one = false; let mut found_one = false;

Loading…
Cancel
Save