mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
Use into_path
This commit is contained in:
parent
29df0139dc
commit
6be0220967
1 changed files with 2 additions and 4 deletions
|
@ -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()])
|
||||
|
|
Loading…
Reference in a new issue