Skip to content

Commit aabee40

Browse files
committed
Use bool_from_envvar rather than bool::from_str.
1 parent 8e2ea9c commit aabee40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub fn parse(target_list: &TargetList) -> Result<Args> {
8787
.map(|s| bool_from_envvar(&s))
8888
.unwrap_or_default();
8989
let enable_doctests = env::var("CROSS_UNSTABLE_ENABLE_DOCTESTS")
90-
.map(|s| bool::from_str(&s).unwrap_or_default())
90+
.map(|s| bool_from_envvar(&s))
9191
.unwrap_or_default();
9292

9393
Ok(Args {

0 commit comments

Comments
 (0)