about summary refs log tree commit diff
path: root/library/test/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/test/src/cli.rs')
-rw-r--r--library/test/src/cli.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/test/src/cli.rs b/library/test/src/cli.rs
index 6ac3b3eaa79..b7d24405b77 100644
--- a/library/test/src/cli.rs
+++ b/library/test/src/cli.rs
@@ -200,7 +200,7 @@ Test Attributes:
 pub fn parse_opts(args: &[String]) -> Option<OptRes> {
     // Parse matches.
     let opts = optgroups();
-    let binary = args.get(0).map(|c| &**c).unwrap_or("...");
+    let binary = args.first().map(|c| &**c).unwrap_or("...");
     let args = args.get(1..).unwrap_or(args);
     let matches = match opts.parse(args) {
         Ok(m) => m,