"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 {
format!("differences:\n\
{}\n\n\
other output:\n\
- `{}`", diffs.connect("\n"),
+ `{}`", diffs.join("\n"),
String::from_utf8_lossy(extra)))
}
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)