Skip to content

Commit 42fb58c

Browse files
committed
Only use Path::display for displaying purposes
1 parent a85e29b commit 42fb58c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ui_test/src/dependencies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn build_dependencies(config: &Config) -> Result<Dependencies> {
4141
if let Some(target) = &config.target {
4242
cmd.arg(format!("--target={target}"));
4343
}
44-
cmd.arg(format!("--manifest-path={}", manifest_path.display()));
44+
cmd.arg("--manifest-path").arg(manifest_path);
4545
};
4646

4747
setup_command(&mut build);

ui_test/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ pub fn run_tests(mut config: Config) -> Result<()> {
7777
let dependencies = build_dependencies(&config)?;
7878
for (name, dependency) in dependencies.dependencies {
7979
config.args.push("--extern".into());
80-
config.args.push(format!("{name}={}", dependency.display()).into());
80+
let mut dep = OsString::from(name);
81+
dep.push("=");
82+
dep.push(dependency);
83+
config.args.push(dep);
8184
}
8285
for import_path in dependencies.import_paths {
8386
config.args.push("-L".into());

0 commit comments

Comments
 (0)