summaryrefslogtreecommitdiffhomepage
path: root/openvpn_ffi/src/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn_ffi/src/parse.rs')
-rw-r--r--openvpn_ffi/src/parse.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn_ffi/src/parse.rs b/openvpn_ffi/src/parse.rs
index 787883fd70..6d0c42c06f 100644
--- a/openvpn_ffi/src/parse.rs
+++ b/openvpn_ffi/src/parse.rs
@@ -52,7 +52,7 @@ pub unsafe fn string_array(mut ptr: *const *const c_char) -> Result<Vec<String>>
/// # Segfaults
///
/// Uses `string_array` internally and will segfault for the same reasons as that function.
-pub unsafe fn env(envptr: *const *const c_char) -> Result<HashMap<String, String>> {
+pub unsafe fn env(envptr: *const *const c_char) -> Result<::OpenVpnEnv> {
let mut map = HashMap::new();
for string in string_array(envptr)? {
let mut iter = string.splitn(2, '=');