This coercion doesn't take place on stable yet.

This commit is contained in:
Sean Bowe 2017-09-28 13:03:01 -06:00
parent 636a037bb1
commit 291fa71914
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>> {
// Return a Wnaf object that immutably borrows the computed base storage location,
// but mutably borrows the scalar storage location.
Wnaf {
base: &self.base,
base: &self.base[..],
scalar: &mut self.scalar,
window_size: window_size
}
@ -131,7 +131,7 @@ impl<G: CurveProjective> Wnaf<(), Vec<G>, Vec<i64>> {
// immutably borrows the computed wNAF form scalar location.
Wnaf {
base: &mut self.base,
scalar: &self.scalar,
scalar: &self.scalar[..],
window_size: window_size
}
}