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 eaf063371..3387cfe26 100644 --- a/xtask/src/codegen/gen_unstable_future_descriptor.rs +++ b/xtask/src/codegen/gen_unstable_future_descriptor.rs | |||
@@ -84,7 +84,7 @@ fn generate_descriptor(src_dir: PathBuf) -> Result<TokenStream> { | |||
84 | .filter(|entry| { | 84 | .filter(|entry| { |
85 | // Get all `.md ` files | 85 | // Get all `.md ` files |
86 | entry.file_type().is_file() | 86 | entry.file_type().is_file() |
87 | && entry.path().extension().map(|ext| ext == "md").unwrap_or(false) | 87 | && entry.path().extension().unwrap_or_default() == "md" |
88 | }) | 88 | }) |
89 | .collect::<Vec<_>>(); | 89 | .collect::<Vec<_>>(); |
90 | 90 | ||