Loading openssl-sys/build.rs +0 −2 Original line number Diff line number Diff line #![feature(path)] extern crate "pkg-config" as pkg_config; extern crate gcc; Loading openssl-sys/src/lib.rs +0 −1 Original line number Diff line number Diff line #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(dead_code)] #![feature(path, path_ext)] #![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl-sys")] extern crate libc; Loading openssl-sys/src/probe.rs +3 −3 Original line number Diff line number Diff line use std::env; use std::fs::PathExt; use std::fs; use std::path::PathBuf; pub struct ProbeResult { Loading @@ -25,7 +25,7 @@ pub fn find_certs_dirs() -> Vec<PathBuf> { "/etc/pki/tls", "/etc/ssl", ].iter().map(|s| PathBuf::new(*s)).filter(|p| { p.exists() fs::metadata(p).is_ok() }).collect() } Loading Loading @@ -67,7 +67,7 @@ pub fn probe() -> ProbeResult { } fn try(dst: &mut Option<PathBuf>, val: PathBuf) { if dst.is_none() && val.exists() { if dst.is_none() && fs::metadata(&val).is_ok() { *dst = Some(val); } } Loading
openssl-sys/build.rs +0 −2 Original line number Diff line number Diff line #![feature(path)] extern crate "pkg-config" as pkg_config; extern crate gcc; Loading
openssl-sys/src/lib.rs +0 −1 Original line number Diff line number Diff line #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] #![allow(dead_code)] #![feature(path, path_ext)] #![doc(html_root_url="https://sfackler.github.io/rust-openssl/doc/openssl-sys")] extern crate libc; Loading
openssl-sys/src/probe.rs +3 −3 Original line number Diff line number Diff line use std::env; use std::fs::PathExt; use std::fs; use std::path::PathBuf; pub struct ProbeResult { Loading @@ -25,7 +25,7 @@ pub fn find_certs_dirs() -> Vec<PathBuf> { "/etc/pki/tls", "/etc/ssl", ].iter().map(|s| PathBuf::new(*s)).filter(|p| { p.exists() fs::metadata(p).is_ok() }).collect() } Loading Loading @@ -67,7 +67,7 @@ pub fn probe() -> ProbeResult { } fn try(dst: &mut Option<PathBuf>, val: PathBuf) { if dst.is_none() && val.exists() { if dst.is_none() && fs::metadata(&val).is_ok() { *dst = Some(val); } }