Skip to content

Commit 1d7bdc0

Browse files
clippy: Fix "collapsible if" warning. (#207)
1 parent f1c0942 commit 1d7bdc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

harfbuzz-sys/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ fn main() {
1111
let target = env::var("TARGET").unwrap();
1212

1313
println!("cargo:rerun-if-env-changed=HARFBUZZ_SYS_NO_PKG_CONFIG");
14-
if target.contains("wasm32") || env::var_os("HARFBUZZ_SYS_NO_PKG_CONFIG").is_none() {
15-
if pkg_config::probe_library("harfbuzz").is_ok() {
16-
return;
17-
}
14+
if (target.contains("wasm32") || env::var_os("HARFBUZZ_SYS_NO_PKG_CONFIG").is_none())
15+
&& pkg_config::probe_library("harfbuzz").is_ok()
16+
{
17+
return;
1818
}
1919

2020
let mut cfg = cc::Build::new();

0 commit comments

Comments
 (0)