mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +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| {
|
.filter(|entry| {
|
||||||
// Get all `.md ` files
|
// Get all `.md ` files
|
||||||
entry.file_type().is_file()
|
entry.file_type().is_file()
|
||||||
&& entry.path().extension().map(|ext| ext == "md").unwrap_or(false)
|
&& entry.path().extension().unwrap_or_default() == "md"
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue