From 91112734f6e0a164dbf6ea3831753d2949d1a044 Mon Sep 17 00:00:00 2001 From: Marc Espin Date: Wed, 28 Aug 2024 18:09:31 +0200 Subject: [PATCH] Revert "feat: Manual impl of PartialEq for `Coroutine`" (#2899) * Revert "feat: Manual impl of PartialEq for `Coroutine` (#2895)" This reverts commit e6efd973d85bf6ce0d8635786f1c98b4c2b65e8e. * Update use_coroutine.rs * Update use_coroutine.rs * Update use_coroutine.rs --- packages/hooks/src/use_coroutine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hooks/src/use_coroutine.rs b/packages/hooks/src/use_coroutine.rs index 3a7016164..03ed6a3d7 100644 --- a/packages/hooks/src/use_coroutine.rs +++ b/packages/hooks/src/use_coroutine.rs @@ -150,7 +150,7 @@ impl Clone for Coroutine { } impl PartialEq for Coroutine { - fn clone(&self) -> Self { + fn eq(&self, other: &Self) -> bool { self.needs_regen == other.needs_regen && self.tx == other.tx && self.task == other.task } }