Inspect CFG_RELEASE_CHANNEL env var at compile time
@@ -24,7 +24,7 @@ use Summary;
macro_rules! is_nightly_channel {
() => {
- env::var("CFG_RELEASE_CHANNEL")
+ option_env!("CFG_RELEASE_CHANNEL")
.map(|c| c == "nightly")
.unwrap_or(false)
}
