diff --git a/crates/bevy_reflect/src/serde/de/deserialize_with_registry.rs b/crates/bevy_reflect/src/serde/de/deserialize_with_registry.rs index d0c9703d40..f92a8e68e2 100644 --- a/crates/bevy_reflect/src/serde/de/deserialize_with_registry.rs +++ b/crates/bevy_reflect/src/serde/de/deserialize_with_registry.rs @@ -41,7 +41,7 @@ use serde::Deserializer; /// [`TypedReflectDeserializer`]: crate::serde::TypedReflectDeserializer /// [`ReflectDeserializer`]: crate::serde::ReflectDeserializer /// [via the registry]: TypeRegistry::register_type_data -pub trait DeserializeWithRegistry<'de>: PartialReflect + Sized { +pub trait DeserializeWithRegistry<'de>: Sized { fn deserialize(deserializer: D, registry: &TypeRegistry) -> Result where D: Deserializer<'de>;