Skip to content

Commit

Permalink
clippy: Fix "collapsible if" warning. (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Aug 7, 2023
1 parent f1c0942 commit 1d7bdc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions harfbuzz-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ fn main() {
let target = env::var("TARGET").unwrap();

println!("cargo:rerun-if-env-changed=HARFBUZZ_SYS_NO_PKG_CONFIG");
if target.contains("wasm32") || env::var_os("HARFBUZZ_SYS_NO_PKG_CONFIG").is_none() {
if pkg_config::probe_library("harfbuzz").is_ok() {
return;
}
if (target.contains("wasm32") || env::var_os("HARFBUZZ_SYS_NO_PKG_CONFIG").is_none())
&& pkg_config::probe_library("harfbuzz").is_ok()
{
return;
}

let mut cfg = cc::Build::new();
Expand Down

0 comments on commit 1d7bdc0

Please sign in to comment.