Skip to content

Commit 35a03c8

Browse files
committed
Tidy: ignore non-Markdown files when linting for the Unstable Book
1 parent a573305 commit 35a03c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/tidy/src/unstable_book.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub fn collect_unstable_book_section_file_names(dir: &path::Path) -> BTreeSet<St
6060
.map(|entry| entry.expect("could not read directory entry"))
6161
.filter(dir_entry_is_file)
6262
.map(|entry| entry.file_name().into_string().unwrap())
63+
.filter(|n| n.ends_with(".md"))
6364
.map(|n| n.trim_right_matches(".md").to_owned())
6465
.collect()
6566
}

0 commit comments

Comments
 (0)