We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bad8b0 commit 8d600d3Copy full SHA for 8d600d3
src/lib.rs
@@ -66,19 +66,17 @@ fn find_files_recursively(paths: &[&str]) -> Vec<PathBuf> {
66
.git_exclude(false)
67
.git_global(false);
68
69
- let file_paths = walker
+ walker
70
.build()
71
.map(|dir_entry| {
72
dir_entry
73
.expect("Could not read directory entry.")
74
.into_path()
75
})
76
- .collect();
77
-
78
- file_paths
+ .collect()
79
}
80
81
-fn get_dependencies(blob_paths: &Vec<&PathBuf>) -> HashMap<String, Vec<String>> {
+fn get_dependencies(blob_paths: &[&PathBuf]) -> HashMap<String, Vec<String>> {
82
let mut dependencies: HashMap<String, Vec<String>> = HashMap::new();
83
84
blob_paths.iter().for_each(|path| {
0 commit comments