Skip to content

Commit c760845

Browse files
committed
fix for recent changes on main
1 parent d9d1749 commit c760845

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crates/bevy_ecs/src/observer/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ impl<'w, E: EventData, B: Bundle> Trigger<'w, E, B> {
8080
}
8181
}
8282

83-
impl<'w, E: Debug, B: Bundle> Debug for Trigger<'w, E, B> {
83+
impl<'w, E: EventData, B: Bundle> Debug for Trigger<'w, E, B>
84+
where
85+
<E as EventData>::Item<'w>: Debug,
86+
{
8487
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8588
f.debug_struct("Trigger")
8689
.field("event", &self.event)

crates/bevy_ecs/src/world/entity_ref.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::{
44
change_detection::MutUntyped,
55
component::{Component, ComponentId, ComponentTicks, Components, StorageType},
66
entity::{Entities, Entity, EntityLocation},
7+
event::Event,
78
observer::{EventData, Observer, Observers},
89
query::Access,
910
removal_detection::RemovedComponentEvents,

0 commit comments

Comments
 (0)