فهرست منبع

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
Marc Espin 10 ماه پیش
والد
کامیت
91112734f6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/hooks/src/use_coroutine.rs

+ 1 - 1
packages/hooks/src/use_coroutine.rs

@@ -150,7 +150,7 @@ impl<T> Clone for Coroutine<T> {
 }
 
 impl<T> PartialEq for Coroutine<T> {
-    fn clone(&self) -> Self {
+    fn eq(&self, other: &Self) -> bool {
         self.needs_regen == other.needs_regen && self.tx == other.tx && self.task == other.task
     }
 }