make Action partialeq (#5488)
* make Action partialeq * better docs, hoist to macro_rules * doc
This commit is contained in:
1 parent
94e4465244
commit
679ba83652
2 files changed
+158
-100
No files matched your search
@@ -469,7 +469,7 @@ impl<Args, Ret> Clone for Callback<Args, Ret> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<Args: 'static, Ret: 'static> PartialEq for Callback<Args, Ret> {
|
||||
impl<Args, Ret> PartialEq for Callback<Args, Ret> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.callback.ptr_eq(&other.callback) && self.origin == other.origin
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user