]> git.lizzy.rs Git - rust.git/commitdiff
librustc_back: remove unnecessary `to_string()` calls
authorJorge Aparicio <japaricious@gmail.com>
Fri, 28 Nov 2014 00:23:53 +0000 (19:23 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sun, 7 Dec 2014 04:53:02 +0000 (23:53 -0500)
src/librustc_back/rpath.rs

index ea691b85f6c27b98ec06a280f6fe713aec3fa136..a90b49ba101fa57c426ed54a63ce92aa2686edc7 100644 (file)
@@ -145,8 +145,8 @@ fn test_rpaths_to_flags() {
             "path2".to_string()
         ]);
         assert_eq!(flags,
-                   vec!("-Wl,-rpath,path1".to_string(),
-                        "-Wl,-rpath,path2".to_string()));
+                   ["-Wl,-rpath,path1",
+                    "-Wl,-rpath,path2"]);
     }
 
     #[test]