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 } }