Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -116,7 +116,7 @@ impl RustSource {
|
||||
.map(|c| format!("**/*{}*", c.replace('-', "_")))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let original_crates = crates.clone();
|
||||
let mut original_crates = crates.clone();
|
||||
original_crates.extend(exclude);
|
||||
|
||||
let exclude = original_crates.iter().map(|c| c.as_str()).collect();
|
||||
@@ -130,7 +130,7 @@ impl RustSource {
|
||||
},
|
||||
);
|
||||
|
||||
return Ok(incremental_dir);
|
||||
Ok(incremental_dir)
|
||||
}
|
||||
|
||||
pub async fn get_rust_skeleton_files(
|
||||
@@ -191,7 +191,7 @@ impl RustSource {
|
||||
}
|
||||
directory = create_skeleton_files(
|
||||
directory,
|
||||
rust_crate.strip_prefix(source_path).unwrap_or(&rust_crate),
|
||||
rust_crate.strip_prefix(source_path).unwrap_or(rust_crate),
|
||||
)?;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user