We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 745b200 + 16b8858 commit 658dbd5Copy full SHA for 658dbd5
openssl-sys/build/main.rs
@@ -9,7 +9,7 @@ extern crate vcpkg;
9
use std::collections::HashSet;
10
use std::env;
11
use std::ffi::OsString;
12
-use std::path::{Path, PathBuf};
+use std::path::PathBuf;
13
mod cfgs;
14
15
mod find_normal;
@@ -80,10 +80,10 @@ fn main() {
80
81
let (lib_dirs, include_dir) = find_openssl(&target);
82
83
- if !lib_dirs.iter().all(|p| Path::new(p).exists()) {
+ if !lib_dirs.iter().all(|p| p.exists()) {
84
panic!("OpenSSL library directory does not exist: {:?}", lib_dirs);
85
}
86
- if !Path::new(&include_dir).exists() {
+ if !include_dir.exists() {
87
panic!(
88
"OpenSSL include directory does not exist: {}",
89
include_dir.to_string_lossy()
0 commit comments