fix clippy with events

This commit is contained in:
Evan Almloff committed 2023-08-31 16:43:24 -05:00
1 parent bf90b7584e
commit 364654e1fd
2 files changed
+55 -55

No files matched your search

+1 -1
View File
@@ -162,7 +162,7 @@ impl WebEventExt<web_sys::AnimationEvent> for dioxus_html::AnimationData {
impl WebEventExt<web_sys::Event> for dioxus_html::ClipboardData {
fn web_event(&self) -> &web_sys::Event {
&self
self
.downcast::<web_sys::Event>()
.expect("event should be a web_sys::Event")
}