mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue