diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-11-20 12:46:45 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2017-11-24 08:06:43 +0100 |
| commit | 7e07fd3e8d83b5feec2d6c3e5fb57de73681a9f3 (patch) | |
| tree | 0b2e8ceb4a013f2a5e18191c58523e320f6e9060 | |
| parent | eb44c89641f6b570d2ec934f5b43f865b31d7dcb (diff) | |
| download | rust-7e07fd3e8d83b5feec2d6c3e5fb57de73681a9f3.tar.gz rust-7e07fd3e8d83b5feec2d6c3e5fb57de73681a9f3.zip | |
Simplify an Iterator::fold to Iterator::any
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 1fd48881ba2..73ed77a6887 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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 { |
