Skip to content

Commit 9febcf5

Browse files
committed
Don't convert Path to lossy str
1 parent 6be0220 commit 9febcf5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/integration.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![cfg(feature = "integration")]
22

33
use std::env;
4+
use std::ffi::OsStr;
45
use std::process::Command;
56

67
#[cfg_attr(feature = "integration", test)]
@@ -16,7 +17,12 @@ fn integration_test() {
1617
repo_dir.push(crate_name);
1718

1819
let st = Command::new("git")
19-
.args(&["clone", "--depth=1", &repo_url, repo_dir.to_str().unwrap()])
20+
.args(&[
21+
OsStr::new("clone"),
22+
OsStr::new("--depth=1"),
23+
OsStr::new(&repo_url),
24+
OsStr::new(&repo_dir),
25+
])
2026
.status()
2127
.expect("unable to run git");
2228
assert!(st.success());

0 commit comments

Comments
 (0)