Skip to content

Commit 454a20a

Browse files
authored
Merge pull request #2948 from CAD97/patch-2
Consider "dev" as nightly for feature (un)gating
2 parents ca19c9a + 8cc4200 commit 454a20a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn make_opts() -> Options {
160160

161161
fn is_nightly() -> bool {
162162
option_env!("CFG_RELEASE_CHANNEL")
163-
.map(|c| c == "nightly")
163+
.map(|c| c == "nightly" || c == "dev")
164164
.unwrap_or(false)
165165
}
166166

src/config/config_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl ConfigType for IgnoreList {
7373
macro_rules! is_nightly_channel {
7474
() => {
7575
option_env!("CFG_RELEASE_CHANNEL")
76-
.map(|c| c == "nightly")
76+
.map(|c| c == "nightly" || c == "dev")
7777
.unwrap_or(true)
7878
};
7979
}

0 commit comments

Comments
 (0)