Skip to content

Commit 6be0220

Browse files
committed
Use into_path
1 parent 29df013 commit 6be0220

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/integration.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ fn integration_test() {
1212
.nth(1)
1313
.expect("repo name should have format `<org>/<name>`");
1414

15-
let repo_dir = tempfile::tempdir()
16-
.expect("couldn't create temp dir")
17-
.path()
18-
.join(crate_name);
15+
let mut repo_dir = tempfile::tempdir().expect("couldn't create temp dir").into_path();
16+
repo_dir.push(crate_name);
1917

2018
let st = Command::new("git")
2119
.args(&["clone", "--depth=1", &repo_url, repo_dir.to_str().unwrap()])

0 commit comments

Comments
 (0)