diff options
author | Dmitry Opokin <[email protected]> | 2020-08-14 17:11:50 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-14 17:11:50 +0100 |
commit | 782238d2a90529debfd38bb9d1d8f38f3ebcb159 (patch) | |
tree | eeafe574748ce73f39e5a920d57d17a4df99ecbf /xtask | |
parent | 034db28c542c04b22147da6722328bc74ff99386 (diff) |
Update xtask/src/codegen/gen_unstable_future_descriptor.rs
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask')
-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 | ||