remove deprecated attr - change connect() to join()
authorSrinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>
Fri, 13 May 2016 00:31:37 +0000 (06:01 +0530)
committerSrinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>
Fri, 13 May 2016 00:31:37 +0000 (06:01 +0530)
tests/support/mod.rs
tests/test_bad_manifest_path.rs

index 3ba8be881f5a312c9719461821d15ec15255a740..61abc6a39c30645390bcdc658d6d11ebac96e543 100644 (file)
@@ -349,7 +349,6 @@ impl Execs {
                        "stderr", &actual.stdout, false)
     }
 
-    #[allow(deprecated)] // connect => join in 1.3
     fn match_std(&self, expected: Option<&String>, actual: &[u8],
                  description: &str, extra: &[u8],
                  partial: bool) -> ham::MatchResult {
@@ -385,7 +384,7 @@ impl Execs {
                     format!("differences:\n\
                             {}\n\n\
                             other output:\n\
-                            `{}`", diffs.connect("\n"),
+                            `{}`", diffs.join("\n"),
                             String::from_utf8_lossy(extra)))
 
     }
index ed6fc7c9a210b3740b2db98402093188cde6d085..0d8eb777e8f14623283f742e4483cb13a9f519a9 100644 (file)
@@ -16,11 +16,11 @@ fn assert_not_a_cargo_toml(command: &str, manifest_path_argument: &str) {
                                              to a Cargo.toml file")));
 }
 
-#[allow(deprecated)] // connect => join in 1.3
+
 fn assert_cargo_toml_doesnt_exist(command: &str, manifest_path_argument: &str) {
     let p = project("foo");
     let expected_path = manifest_path_argument
-        .split("/").collect::<Vec<_>>().connect("[..]");
+        .split("/").collect::<Vec<_>>().join("[..]");
 
     assert_that(p.cargo_process(command)
                  .arg("--manifest-path").arg(manifest_path_argument)