We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ac140 commit 0bd7fceCopy full SHA for 0bd7fce
1 file changed
build.rs
@@ -4,11 +4,7 @@ const CPAL_ASIO_DIR: &str = "CPAL_ASIO_DIR";
4
5
fn main() {
6
println!("cargo:rerun-if-env-changed={CPAL_ASIO_DIR}");
7
-
8
- // If ASIO directory isn't set silently return early
9
- // otherwise set the asio config flag
10
- match env::var(CPAL_ASIO_DIR) {
11
- Err(_) => {}
12
- Ok(_) => println!("cargo:rustc-cfg=asio"),
13
- };
+ if env::var(CPAL_ASIO_DIR).is_ok() {
+ println!("cargo:rustc-cfg=asio");
+ }
14
}
0 commit comments