Merge pull request #840 from mirkootter/master
This commit is contained in:
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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
#![allow(unused)]
|
#![allow(unused)]
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ impl PartialEq<bool> for &UseState<bool> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: PartialEq> PartialEq<UseState<T>> for UseState<T> {
|
impl<T> PartialEq<UseState<T>> for UseState<T> {
|
||||||
fn eq(&self, other: &UseState<T>) -> bool {
|
fn eq(&self, other: &UseState<T>) -> bool {
|
||||||
Rc::ptr_eq(&self.current_val, &other.current_val)
|
Rc::ptr_eq(&self.current_val, &other.current_val)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user