From 05dd65510d08d0ac2e8de731e32e95df5bfec915 Mon Sep 17 00:00:00 2001 From: Henri Chataing Date: Fri, 20 Oct 2023 08:52:58 -0700 Subject: [PATCH] Fix clippy unwrap_or_default warning --- pdl-derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdl-derive/src/lib.rs b/pdl-derive/src/lib.rs index 2555a91..c8376b7 100644 --- a/pdl-derive/src/lib.rs +++ b/pdl-derive/src/lib.rs @@ -57,7 +57,7 @@ fn pdl_proc_macro(path: syn::LitStr, input: syn::ItemMod) -> TokenStream { let mod_ident = input.ident; let mod_attrs = input.attrs; let mod_vis = input.vis; - let mod_items = input.content.map(|(_, items)| items).unwrap_or(vec![]); + let mod_items = input.content.map(|(_, items)| items).unwrap_or_default(); quote! { #(#mod_attrs)*