diff --git a/src/librustc_back/rpath.rs b/src/librustc_back/rpath.rs index ea691b85f6c2..a90b49ba101f 100644 --- a/src/librustc_back/rpath.rs +++ b/src/librustc_back/rpath.rs @@ -145,8 +145,8 @@ mod test { "path2".to_string() ]); assert_eq!(flags, - vec!("-Wl,-rpath,path1".to_string(), - "-Wl,-rpath,path2".to_string())); + ["-Wl,-rpath,path1", + "-Wl,-rpath,path2"]); } #[test]