Skip to content

Commit bd7fb7c

Browse files
fix merge error
1 parent 76ae201 commit bd7fb7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_ecs/src/reflect/entity_commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl<'w> EntityWorldMut<'w> {
227227
///
228228
/// Prefer to use the typed [`EntityWorldMut::insert`] if possible. Adding a reflected component
229229
/// is much slower.
230-
pub fn insert_reflect(&mut self, component: Box<dyn PartialReflect>) -> &mut Self {
230+
pub fn insert_reflect(&mut self, component: Box<dyn PartialReflect + Send + Sync>) -> &mut Self {
231231
self.assert_not_despawned();
232232
let entity_id = self.id();
233233
self.world_scope(|world| {
@@ -255,7 +255,7 @@ impl<'w> EntityWorldMut<'w> {
255255
/// - If the given [`Resource`] is not present in the [`World`].
256256
pub fn insert_reflect_with_registry<T: Resource + AsRef<TypeRegistry>>(
257257
&mut self,
258-
component: Box<dyn PartialReflect>,
258+
component: Box<dyn PartialReflect + Send + Sync>,
259259
) -> &mut Self {
260260
self.assert_not_despawned();
261261
let entity_id = self.id();

0 commit comments

Comments
 (0)