Skip to content

Commit 8d600d3

Browse files
committed
Apply clippy suggestions
1 parent 2bad8b0 commit 8d600d3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,17 @@ fn find_files_recursively(paths: &[&str]) -> Vec<PathBuf> {
6666
.git_exclude(false)
6767
.git_global(false);
6868

69-
let file_paths = walker
69+
walker
7070
.build()
7171
.map(|dir_entry| {
7272
dir_entry
7373
.expect("Could not read directory entry.")
7474
.into_path()
7575
})
76-
.collect();
77-
78-
file_paths
76+
.collect()
7977
}
8078

81-
fn get_dependencies(blob_paths: &Vec<&PathBuf>) -> HashMap<String, Vec<String>> {
79+
fn get_dependencies(blob_paths: &[&PathBuf]) -> HashMap<String, Vec<String>> {
8280
let mut dependencies: HashMap<String, Vec<String>> = HashMap::new();
8381

8482
blob_paths.iter().for_each(|path| {

0 commit comments

Comments
 (0)