diff --git a/crates/bevy_reflect/src/type_registry.rs b/crates/bevy_reflect/src/type_registry.rs index bf1950b7af9cb..8ccd81ce710f7 100644 --- a/crates/bevy_reflect/src/type_registry.rs +++ b/crates/bevy_reflect/src/type_registry.rs @@ -590,6 +590,7 @@ impl TypeRegistration { /// Inserts the [`TypeData`] instance of `T` created for `V`, and inserts any /// [`TypeData`] dependencies for that combination of `T` and `V`. + #[inline] pub fn register_type_data, V>(&mut self) { self.insert(T::from_type()); T::insert_dependencies(self);