mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-11 15:07:08 +00:00
fmt
This commit is contained in:
parent
56517ef5de
commit
f77f8c8500
1 changed files with 3 additions and 1 deletions
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue