Simplify an Iterator::fold to Iterator::any
This commit is contained in:
parent
eb44c89641
commit
7e07fd3e8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue