Skip to content

Commit 3991112

Browse files
committed
Fix product detection in CI by using PathBuf directly
1 parent c79da11 commit 3991112

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/product.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,9 @@ impl Product {
143143
} else {
144144
target_directory_name.clone()
145145
};
146-
let target_directory_path = match Path::join(&src_directory_path, &target_name).to_str() {
147-
Some(path) => path.to_string(),
148-
None => continue,
149-
};
146+
let target_directory_pathbuf = Path::join(&src_directory_path, &target_name);
150147

151-
let product_directory_path = match Url::from_directory_path(target_directory_path) {
148+
let product_directory_path = match Url::from_directory_path(&target_directory_pathbuf) {
152149
Ok(url) => url.to_string(),
153150
Err(_) => continue,
154151
};

0 commit comments

Comments
 (0)