diff --git a/src/client.rs b/src/client.rs index 98f1dcb..20546ef 100644 --- a/src/client.rs +++ b/src/client.rs @@ -188,7 +188,7 @@ impl SslOptions { match path { &Some(ref p) => { try!(File::open(p.as_path())); - Ok(Some(p.as_os_str().to_cstring().unwrap())) + Ok(Some(CString::new(p.to_string_lossy().into_owned()).unwrap())) }, &None => Ok(None) } diff --git a/src/lib.rs b/src/lib.rs index e84f376..35a6761 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,3 @@ -#![feature(convert)] - extern crate libc; extern crate mongoc_sys as mongoc;