Update xtask/src/codegen/gen_unstable_future_descriptor.rs

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
Dmitry Opokin 2020-08-14 23:11:50 +07:00 committed by GitHub
parent 034db28c54
commit 782238d2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ fn generate_descriptor(src_dir: PathBuf) -> Result<TokenStream> {
.filter(|entry| {
// Get all `.md ` files
entry.file_type().is_file()
&& entry.path().extension().map(|ext| ext == "md").unwrap_or(false)
&& entry.path().extension().unwrap_or_default() == "md"
})
.collect::<Vec<_>>();