Skip to content

Commit

Permalink
Fix clippy unwrap_or_default warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hchataing committed Oct 23, 2023
1 parent c18f55f commit 05dd655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdl-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)*
Expand Down

0 comments on commit 05dd655

Please sign in to comment.