make Action partialeq (#5488)

* make Action partialeq

* better docs, hoist to macro_rules

* doc
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2026-04-14 14:34:41 -07:00
1 parent 94e4465244
commit 679ba83652
2 files changed
+158 -100

No files matched your search

+1 -1
View File
@@ -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
}