We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PartialEq
Thread
1 parent c910660 commit efd0856Copy full SHA for efd0856
1 file changed
src/thread.rs
@@ -106,7 +106,7 @@ impl ThreadStatusInner {
106
}
107
108
/// Handle to an internal Lua thread (coroutine).
109
-#[derive(Clone)]
+#[derive(Clone, PartialEq)]
110
pub struct Thread(pub(crate) ValueRef, pub(crate) *mut ffi::lua_State);
111
112
#[cfg(feature = "send")]
@@ -565,12 +565,6 @@ impl fmt::Debug for Thread {
565
566
567
568
-impl PartialEq for Thread {
569
- fn eq(&self, other: &Self) -> bool {
570
- self.0 == other.0
571
- }
572
-}
573
-
574
impl LuaType for Thread {
575
const TYPE_ID: c_int = ffi::LUA_TTHREAD;
576
0 commit comments