diff options
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/gen_unstable_future_descriptor.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xtask/src/codegen/gen_unstable_future_descriptor.rs b/xtask/src/codegen/gen_unstable_future_descriptor.rs index 3f3beb591..f220f85d3 100644 --- a/xtask/src/codegen/gen_unstable_future_descriptor.rs +++ b/xtask/src/codegen/gen_unstable_future_descriptor.rs | |||
@@ -15,8 +15,7 @@ fn generate_descriptor(src_dir: PathBuf) -> Result<TokenStream> { | |||
15 | .filter_map(|e| e.ok()) | 15 | .filter_map(|e| e.ok()) |
16 | .filter(|entry| { | 16 | .filter(|entry| { |
17 | // Get all `.md ` files | 17 | // Get all `.md ` files |
18 | entry.file_type().is_file() | 18 | entry.file_type().is_file() && entry.path().extension().unwrap_or_default() == "md" |
19 | && entry.path().extension().unwrap_or_default() == "md" | ||
20 | }) | 19 | }) |
21 | .collect::<Vec<_>>(); | 20 | .collect::<Vec<_>>(); |
22 | 21 | ||