This commit is contained in:
Jonathan Kelley 2022-02-26 17:38:05 -05:00
parent 56517ef5de
commit f77f8c8500

View file

@ -139,7 +139,9 @@ impl AnyEvent {
pub fn downcast<T: Send + Sync + 'static>(self) -> Option<UiEvent<T>> {
let AnyEvent { data, bubble_state } = self;
data.downcast::<T>().ok().map(|data| UiEvent { bubble_state, data })
data.downcast::<T>()
.ok()
.map(|data| UiEvent { bubble_state, data })
}
}