Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -185,7 +185,10 @@ impl RustSource {
|
||||
if let Some(file_name) = rust_crate.file_name() {
|
||||
crate_names.push(file_name.to_str().unwrap().to_string());
|
||||
}
|
||||
directory = create_skeleton_files(directory, rust_crate.strip_prefix(source_path)?)?;
|
||||
directory = create_skeleton_files(
|
||||
directory,
|
||||
rust_crate.strip_prefix(source_path).unwrap_or(&rust_crate),
|
||||
)?;
|
||||
}
|
||||
|
||||
Ok((directory, crate_names))
|
||||
|
Reference in New Issue
Block a user