diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-03-14 15:17:52 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-03-14 22:20:16 +0700 |
| commit | 6be02209672e4bcd8cf96cb417216a0abe1b4fe3 (patch) | |
| tree | 3d618873bc3b3021062969212cd64e0f90080f8c | |
| parent | 29df0139dc4b7407e1a867dd76a9df35f2bff08f (diff) | |
| download | rust-6be02209672e4bcd8cf96cb417216a0abe1b4fe3.tar.gz rust-6be02209672e4bcd8cf96cb417216a0abe1b4fe3.zip | |
Use `into_path`
| -rw-r--r-- | tests/integration.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/integration.rs b/tests/integration.rs index 00eb140544f..8cc78c98a65 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -12,10 +12,8 @@ fn integration_test() { .nth(1) .expect("repo name should have format `<org>/<name>`"); - let repo_dir = tempfile::tempdir() - .expect("couldn't create temp dir") - .path() - .join(crate_name); + let mut repo_dir = tempfile::tempdir().expect("couldn't create temp dir").into_path(); + repo_dir.push(crate_name); let st = Command::new("git") .args(&["clone", "--depth=1", &repo_url, repo_dir.to_str().unwrap()]) |
