Skip to content

Commit 89cd6cb

Browse files
lqdcompiler-errors
authored andcommitted
remove unneeded return
1 parent 7d6344a commit 89cd6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/formality-macros/src/constructors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub(crate) fn constructor_methods(s: synstructure::Structure) -> TokenStream {
1717
match s.ast().data {
1818
syn::Data::Struct(_) => derive_new_for_struct(s),
1919
syn::Data::Enum(_) => derive_new_for_variants(s),
20-
syn::Data::Union(_) => return Default::default(),
20+
syn::Data::Union(_) => Default::default(),
2121
}
2222
}
2323

0 commit comments

Comments
 (0)