mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
Update xtask/src/codegen/gen_unstable_future_descriptor.rs
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
parent
034db28c54
commit
782238d2a9
@ -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<_>>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user