Simplify an Iterator::fold to Iterator::any
This commit is contained in:
parent
eb44c89641
commit
7e07fd3e8d
@ -1370,7 +1370,7 @@ actual:\n\
|
||||
// Optionally prevent default --target if specified in test compile-flags.
|
||||
let custom_target = self.props.compile_flags
|
||||
.iter()
|
||||
.fold(false, |acc, x| acc || x.starts_with("--target"));
|
||||
.any(|x| x.starts_with("--target"));
|
||||
|
||||
if !custom_target {
|
||||
let target = if self.props.force_host {
|
||||
|
Loading…
x
Reference in New Issue
Block a user