Skip to content

Commit

Permalink
Merge pull request #2158 from alex/cleanup
Browse files Browse the repository at this point in the history
Cleanup some not-required Path::new invocations
  • Loading branch information
alex committed Feb 8, 2024
2 parents 745b200 + 16b8858 commit 658dbd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openssl-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extern crate vcpkg;
use std::collections::HashSet;
use std::env;
use std::ffi::OsString;
use std::path::{Path, PathBuf};
use std::path::PathBuf;
mod cfgs;

mod find_normal;
Expand Down Expand Up @@ -80,10 +80,10 @@ fn main() {

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

if !lib_dirs.iter().all(|p| Path::new(p).exists()) {
if !lib_dirs.iter().all(|p| p.exists()) {
panic!("OpenSSL library directory does not exist: {:?}", lib_dirs);
}
if !Path::new(&include_dir).exists() {
if !include_dir.exists() {
panic!(
"OpenSSL include directory does not exist: {}",
include_dir.to_string_lossy()
Expand Down

0 comments on commit 658dbd5

Please sign in to comment.