Update Clippy to support latest nightly, and fix some lints.

This commit is contained in:
Sean Bowe 2018-03-29 10:13:00 -06:00
parent bcc8379a7f
commit fcaddaa356
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
4 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ repository = "https://github.com/ebfull/pairing"
[dependencies]
rand = "0.4"
byteorder = "1"
clippy = { version = "0.0.186", optional = true }
clippy = { version = "0.0.190", optional = true }
[features]
unstable-features = ["expose-arith"]

View File

@ -350,7 +350,7 @@ impl G2Prepared {
coeffs.push(doubling_step(&mut r));
G2Prepared {
coeffs: coeffs,
coeffs,
infinity: false,
}
}

View File

@ -563,7 +563,7 @@ impl<E: AsRef<[u64]>> BitIterator<E> {
pub fn new(t: E) -> Self {
let n = t.as_ref().len() * 64;
BitIterator { t: t, n: n }
BitIterator { t, n }
}
}

View File

@ -102,7 +102,7 @@ impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>> {
Wnaf {
base: &self.base[..],
scalar: &mut self.scalar,
window_size: window_size,
window_size,
}
}
@ -123,7 +123,7 @@ impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>> {
Wnaf {
base: &mut self.base,
scalar: &self.scalar[..],
window_size: window_size,
window_size,
}
}
}