Skip to content

Commit 8e13d1a

Browse files
committed
use the newer .get::<Option<bool>>
1 parent 30df731 commit 8e13d1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ impl Config {
627627
self.cli_flags.parse(unstable_flags)?;
628628

629629
if nightly_features_allowed() {
630-
if let Some(val) = self.get_bool("unstable.mtime_on_use")?.map(|t| t.val) {
630+
if let Some(val) = self.get::<Option<bool>>("unstable.mtime_on_use")? {
631631
self.cli_flags.mtime_on_use |= val;
632632
}
633633
}

0 commit comments

Comments
 (0)