mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
make EventHandler partialeq
This commit is contained in:
parent
58c01253e5
commit
ebacc7b709
1 changed files with 6 additions and 0 deletions
|
@ -168,6 +168,12 @@ impl<T> Clone for EventHandler<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> PartialEq for EventHandler<T> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
Rc::ptr_eq(&self.callback, &other.callback)
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Default for EventHandler<T> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
|
Loading…
Reference in a new issue