From ef4b3d9bfa9496f6b76ff1c6546c39f9c7c7331e Mon Sep 17 00:00:00 2001 From: topecongiro Date: Mon, 4 Dec 2017 11:34:27 +0900 Subject: [PATCH] Inspect CFG_RELEASE_CHANNEL env var at compile time --- src/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index d7b5e8c6ee3..e0fae952d6b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -24,9 +24,9 @@ use Summary; macro_rules! is_nightly_channel { () => { - env::var("CFG_RELEASE_CHANNEL") - .map(|c| c == "nightly") - .unwrap_or(false) + option_env!("CFG_RELEASE_CHANNEL") + .map(|c| c == "nightly") + .unwrap_or(false) } }