Skip to content

Commit 065fc8a

Browse files
committed
Make stable clippy happy.
1 parent e8916b4 commit 065fc8a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

amethyst_derive/src/system_desc.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -512,13 +512,11 @@ fn call_system_constructor(context: &Context<'_>) -> TokenStream {
512512
}
513513
}
514514
}
515+
} else if has_fields_skipped_or_phantom {
516+
quote!(#system_name::default())
515517
} else {
516-
if has_fields_skipped_or_phantom {
517-
quote!(#system_name::default())
518-
} else {
519-
quote! {
520-
#system_name {}
521-
}
518+
quote! {
519+
#system_name {}
522520
}
523521
}
524522
}

0 commit comments

Comments
 (0)