From 41d343eeaa052749cd8724a15be12af26875827a Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 10 Oct 2020 20:15:46 +0200 Subject: [PATCH] Remove the acme_common build script's warning --- acme_common/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme_common/build.rs b/acme_common/build.rs index 05ee769..cbe5839 100644 --- a/acme_common/build.rs +++ b/acme_common/build.rs @@ -7,10 +7,10 @@ macro_rules! set_rustc_env_var { } fn main() { - if let Ok(_) = env::var("DEP_OPENSSL_VERSION_NUMBER") { + if env::var("DEP_OPENSSL_VERSION_NUMBER").is_ok() { set_rustc_env_var!("ACMED_TLS_LIB_NAME", "OpenSSL"); } - if let Ok(_) = env::var("DEP_OPENSSL_LIBRESSL_VERSION_NUMBER") { + if env::var("DEP_OPENSSL_LIBRESSL_VERSION_NUMBER").is_ok() { set_rustc_env_var!("ACMED_TLS_LIB_NAME", "LibreSSL"); } }