PartialEq for UseState/UseCoroutine
This commit is contained in:
1 parent
d40720391a
commit
9ac8210196
2 files changed
+7
-1
No files matched your search
@@ -108,6 +108,12 @@ impl<T> Coroutine<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> PartialEq for Coroutine<T> {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.task == other.task
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#![allow(unused)]
|
||||
|
||||
Reference in new issue
Block a user