mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
Update Clippy to support latest nightly, and fix some lints.
This commit is contained in:
@@ -14,7 +14,7 @@ repository = "https://github.com/ebfull/pairing"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
rand = "0.4"
|
rand = "0.4"
|
||||||
byteorder = "1"
|
byteorder = "1"
|
||||||
clippy = { version = "0.0.186", optional = true }
|
clippy = { version = "0.0.190", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
unstable-features = ["expose-arith"]
|
unstable-features = ["expose-arith"]
|
||||||
|
@@ -350,7 +350,7 @@ impl G2Prepared {
|
|||||||
coeffs.push(doubling_step(&mut r));
|
coeffs.push(doubling_step(&mut r));
|
||||||
|
|
||||||
G2Prepared {
|
G2Prepared {
|
||||||
coeffs: coeffs,
|
coeffs,
|
||||||
infinity: false,
|
infinity: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -563,7 +563,7 @@ impl<E: AsRef<[u64]>> BitIterator<E> {
|
|||||||
pub fn new(t: E) -> Self {
|
pub fn new(t: E) -> Self {
|
||||||
let n = t.as_ref().len() * 64;
|
let n = t.as_ref().len() * 64;
|
||||||
|
|
||||||
BitIterator { t: t, n: n }
|
BitIterator { t, n }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -102,7 +102,7 @@ impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>> {
|
|||||||
Wnaf {
|
Wnaf {
|
||||||
base: &self.base[..],
|
base: &self.base[..],
|
||||||
scalar: &mut self.scalar,
|
scalar: &mut self.scalar,
|
||||||
window_size: window_size,
|
window_size,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>> {
|
|||||||
Wnaf {
|
Wnaf {
|
||||||
base: &mut self.base,
|
base: &mut self.base,
|
||||||
scalar: &self.scalar[..],
|
scalar: &self.scalar[..],
|
||||||
window_size: window_size,
|
window_size,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user