From 782238d2a90529debfd38bb9d1d8f38f3ebcb159 Mon Sep 17 00:00:00 2001 From: Dmitry Opokin Date: Fri, 14 Aug 2020 23:11:50 +0700 Subject: Update xtask/src/codegen/gen_unstable_future_descriptor.rs Co-authored-by: Aleksey Kladov --- xtask/src/codegen/gen_unstable_future_descriptor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xtask') 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 { .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::>(); -- cgit v1.2.3