Skip to content

Commit

Permalink
Use is_nightly helper instead of duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jul 31, 2018
1 parent c25deef commit 593a5c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bin/main.rs
Expand Up @@ -456,9 +456,7 @@ impl GetOptsOptions {
return Err(format_err!("Can't use both `--verbose` and `--quiet`"));
}

let rust_nightly = option_env!("CFG_RELEASE_CHANNEL")
.map(|c| c == "nightly")
.unwrap_or(false);
let rust_nightly = is_nightly();

if rust_nightly {
options.unstable_features = matches.opt_present("unstable-features");
Expand Down

0 comments on commit 593a5c4

Please sign in to comment.