Skip to content

Commit 658dbd5

Browse files
authored
Merge pull request #2158 from alex/cleanup
Cleanup some not-required Path::new invocations
2 parents 745b200 + 16b8858 commit 658dbd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openssl-sys/build/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extern crate vcpkg;
99
use std::collections::HashSet;
1010
use std::env;
1111
use std::ffi::OsString;
12-
use std::path::{Path, PathBuf};
12+
use std::path::PathBuf;
1313
mod cfgs;
1414

1515
mod find_normal;
@@ -80,10 +80,10 @@ fn main() {
8080

8181
let (lib_dirs, include_dir) = find_openssl(&target);
8282

83-
if !lib_dirs.iter().all(|p| Path::new(p).exists()) {
83+
if !lib_dirs.iter().all(|p| p.exists()) {
8484
panic!("OpenSSL library directory does not exist: {:?}", lib_dirs);
8585
}
86-
if !Path::new(&include_dir).exists() {
86+
if !include_dir.exists() {
8787
panic!(
8888
"OpenSSL include directory does not exist: {}",
8989
include_dir.to_string_lossy()

0 commit comments

Comments
 (0)