Skip to content

Commit 7e07fd3

Browse files
committed
Simplify an Iterator::fold to Iterator::any
1 parent eb44c89 commit 7e07fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ actual:\n\
13701370
// Optionally prevent default --target if specified in test compile-flags.
13711371
let custom_target = self.props.compile_flags
13721372
.iter()
1373-
.fold(false, |acc, x| acc || x.starts_with("--target"));
1373+
.any(|x| x.starts_with("--target"));
13741374

13751375
if !custom_target {
13761376
let target = if self.props.force_host {

0 commit comments

Comments
 (0)