Skip to content

Commit 7d385ab

Browse files
committed
Also use the cached filename for require_literal_leading_dot check
1 parent 79928b0 commit 7d385ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ fn fill_todo(
966966
Ok(mut children) => {
967967
if options.require_literal_leading_dot {
968968
children.retain(|x| {
969-
!x.0.file_name().unwrap().to_str().unwrap().starts_with('.')
969+
!x.1.to_str().unwrap().starts_with('.')
970970
});
971971
}
972972
children.sort_by(|p1, p2| p2.1.cmp(&p1.1));

0 commit comments

Comments
 (0)