fix clippy with events
This commit is contained in:
1 parent
bf90b7584e
commit
364654e1fd
2 files changed
+55
-55
No files matched your search
@@ -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")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user