From 894421f3b51ff535beb393c7abd61e560e97c933 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 23 Aug 2019 12:01:01 +0100 Subject: [PATCH] librustzcash: Fix typo in Windows parameter init --- librustzcash/src/rustzcash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librustzcash/src/rustzcash.rs b/librustzcash/src/rustzcash.rs index 7e7c1a02b..bcd6f8806 100644 --- a/librustzcash/src/rustzcash.rs +++ b/librustzcash/src/rustzcash.rs @@ -181,7 +181,7 @@ pub extern "system" fn librustzcash_init_zksnark_params( let sprout_path = if sprout_path.is_null() { None } else { - Some(OsStr::from_wide(unsafe { + Some(OsString::from_wide(unsafe { slice::from_raw_parts(sprout_path, sprout_path_len) })) };