Skip to content

Commit 78d358b

Browse files
committed
s/direntry/dir_entry
1 parent 7031243 commit 78d358b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clippy_dev/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ impl Lint {
5454

5555
pub fn collect_all() -> Vec<Lint> {
5656
let mut lints = vec![];
57-
for direntry in lint_files() {
58-
lints.append(&mut collect_from_file(&direntry));
57+
for dir_entry in lint_files() {
58+
lints.append(&mut collect_from_file(&dir_entry));
5959
}
6060
lints
6161
}
6262

63-
fn collect_from_file(direntry: &fs::DirEntry) -> Vec<Lint> {
64-
let mut file = fs::File::open(direntry.path()).unwrap();
63+
fn collect_from_file(dir_entry: &fs::DirEntry) -> Vec<Lint> {
64+
let mut file = fs::File::open(dir_entry.path()).unwrap();
6565
let mut content = String::new();
6666
file.read_to_string(&mut content).unwrap();
67-
parse_contents(&content, direntry.path().file_stem().unwrap().to_str().unwrap())
67+
parse_contents(&content, dir_entry.path().file_stem().unwrap().to_str().unwrap())
6868
}
6969

7070
fn parse_contents(content: &str, filename: &str) -> Vec<Lint> {

0 commit comments

Comments
 (0)