]> git.lizzy.rs Git - rust.git/commitdiff
Tidy: ignore non-Markdown files when linting for the Unstable Book
authorvarkor <github@varkor.com>
Wed, 15 Aug 2018 17:01:37 +0000 (18:01 +0100)
committervarkor <github@varkor.com>
Wed, 15 Aug 2018 17:01:37 +0000 (18:01 +0100)
src/tools/tidy/src/unstable_book.rs

index 6b573908de9025b9da5b90d9964145baeb05e22a..62296f73f016b6b89e7cbb1783c6db6880f30ed9 100644 (file)
@@ -60,6 +60,7 @@ pub fn collect_unstable_book_section_file_names(dir: &path::Path) -> BTreeSet<St
         .map(|entry| entry.expect("could not read directory entry"))
         .filter(dir_entry_is_file)
         .map(|entry| entry.file_name().into_string().unwrap())
+        .filter(|n| n.ends_with(".md"))
         .map(|n| n.trim_right_matches(".md").to_owned())
         .collect()
 }