]> git.proxmox.com Git - rustc.git/blobdiff - src/libgetopts/lib.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / libgetopts / lib.rs
index 42200795bb3a53c9e38721845d2ff5ee40858008..4d2f1b999a2aec763b96be41930766f315cc0024 100644 (file)
@@ -1610,8 +1610,8 @@ Options:
 
     #[test]
     fn test_args_with_equals() {
-        let args = vec!("--one".to_string(), "A=B".to_string(),
-                        "--two=C=D".to_string());
+        let args = vec!["--one".to_string(), "A=B".to_string(),
+                        "--two=C=D".to_string()];
         let opts = vec![optopt("o", "one", "One", "INFO"),
                         optopt("t", "two", "Two", "INFO")];
         let matches = &match getopts(&args, &opts) {