about summary refs log tree commit diff
path: root/src/librustpkg/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustpkg/util.rs')
-rw-r--r--src/librustpkg/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs
index 60fe7d52321..7a638442120 100644
--- a/src/librustpkg/util.rs
+++ b/src/librustpkg/util.rs
@@ -56,7 +56,7 @@ pub fn root() -> Path {
 }
 
 pub fn is_cmd(cmd: &str) -> bool {
-    Commands.any(|&c| c == cmd)
+    Commands.iter().any_(|&c| c == cmd)
 }
 
 struct ListenerFn {