Merge pull request #2235 from topecongiro/option_env
Inspect CFG_RELEASE_CHANNEL env var at compile time
This commit is contained in:
commit
77524632f3
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue