Skip to content

Commit

Permalink
use the newer .get::<Option<bool>>
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Sep 24, 2019
1 parent 30df731 commit 8e13d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/util/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ impl Config {
self.cli_flags.parse(unstable_flags)?;

if nightly_features_allowed() {
if let Some(val) = self.get_bool("unstable.mtime_on_use")?.map(|t| t.val) {
if let Some(val) = self.get::<Option<bool>>("unstable.mtime_on_use")? {
self.cli_flags.mtime_on_use |= val;
}
}
Expand Down

0 comments on commit 8e13d1a

Please sign in to comment.