diff options
-rw-r--r-- | xtask/src/codegen/gen_unstable_future_descriptor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_unstable_future_descriptor.rs b/xtask/src/codegen/gen_unstable_future_descriptor.rs index fee68c365..56065f17d 100644 --- a/xtask/src/codegen/gen_unstable_future_descriptor.rs +++ b/xtask/src/codegen/gen_unstable_future_descriptor.rs | |||
@@ -30,7 +30,7 @@ pub fn generate_unstable_future_descriptor(mode: Mode) -> Result<()> { | |||
30 | .filter(|entry| { | 30 | .filter(|entry| { |
31 | // Get all `.md ` files | 31 | // Get all `.md ` files |
32 | entry.file_type().is_file() | 32 | entry.file_type().is_file() |
33 | && entry.path().extension().map(|ext| ext == "md").unwrap_or(false) | 33 | && entry.path().extension().unwrap_or_default() == "md" |
34 | }) | 34 | }) |
35 | .collect::<Vec<_>>(); | 35 | .collect::<Vec<_>>(); |
36 | 36 | ||