We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c79da11 commit 3991112Copy full SHA for 3991112
src/product.rs
@@ -143,12 +143,9 @@ impl Product {
143
} else {
144
target_directory_name.clone()
145
};
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
- };
+ let target_directory_pathbuf = Path::join(&src_directory_path, &target_name);
150
151
- let product_directory_path = match Url::from_directory_path(target_directory_path) {
+ let product_directory_path = match Url::from_directory_path(&target_directory_pathbuf) {
152
Ok(url) => url.to_string(),
153
Err(_) => continue,
154
0 commit comments