bevy_reflect: Remove unnecessary allow(unused_mut)
. (#19930)
# Objective The generated `GetTypeRegistration::get_type_registration` method has an unnecessary `allow(unused_mut)` attribute. It used to be necessary because it was possible for `registration` to not be modified, but now there is always at least one modification. ## Solution Remove the attribute. ## Testing I checked the `cargo expand` output.
This commit is contained in:
parent
eed3085a37
commit
2d02f629b3
@ -43,7 +43,6 @@ pub(crate) fn impl_get_type_registration<'a>(
|
||||
});
|
||||
|
||||
quote! {
|
||||
#[allow(unused_mut)]
|
||||
impl #impl_generics #bevy_reflect_path::GetTypeRegistration for #type_path #ty_generics #where_reflect_clause {
|
||||
fn get_type_registration() -> #bevy_reflect_path::TypeRegistration {
|
||||
let mut registration = #bevy_reflect_path::TypeRegistration::of::<Self>();
|
||||
|
Loading…
Reference in New Issue
Block a user