remove explicit unit return type (#9053)

This commit is contained in:
Joshy Orndorff authored and GitHub committed 2021-06-09 14:36:41 +00:00
1 parent 43422ba440
commit 5e0f922db4
1 file changed
+1 -1
@@ -133,7 +133,7 @@ pub fn expand_event(def: &mut Def) -> proc_macro2::TokenStream {
#deposit_event
impl<#event_impl_gen> From<#event_ident<#event_use_gen>> for () #event_where_clause {
fn from(_: #event_ident<#event_use_gen>) -> () { () }
fn from(_: #event_ident<#event_use_gen>) {}
}
impl<#event_impl_gen> #event_ident<#event_use_gen> #event_where_clause {