From 291fa719147d5b293833f904fc5fb9f084b50b18 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Thu, 28 Sep 2017 13:03:01 -0600 Subject: [PATCH] This coercion doesn't take place on stable yet. --- src/wnaf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wnaf.rs b/src/wnaf.rs index de5021d1a..0cdae3b7a 100644 --- a/src/wnaf.rs +++ b/src/wnaf.rs @@ -108,7 +108,7 @@ impl Wnaf<(), Vec, Vec> { // 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 Wnaf<(), Vec, Vec> { // immutably borrows the computed wNAF form scalar location. Wnaf { base: &mut self.base, - scalar: &self.scalar, + scalar: &self.scalar[..], window_size: window_size } }