Merge pull request #2948 from CAD97/patch-2
Consider "dev" as nightly for feature (un)gating
This commit is contained in:
commit
454a20ac01
@ -160,7 +160,7 @@ fn make_opts() -> Options {
|
||||
|
||||
fn is_nightly() -> bool {
|
||||
option_env!("CFG_RELEASE_CHANNEL")
|
||||
.map(|c| c == "nightly")
|
||||
.map(|c| c == "nightly" || c == "dev")
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ impl ConfigType for IgnoreList {
|
||||
macro_rules! is_nightly_channel {
|
||||
() => {
|
||||
option_env!("CFG_RELEASE_CHANNEL")
|
||||
.map(|c| c == "nightly")
|
||||
.map(|c| c == "nightly" || c == "dev")
|
||||
.unwrap_or(true)
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user