forked from M-Labs/libfringe
Implement Eq on generator::State.
This commit is contained in:
parent
f9b6cd17f6
commit
243e9ffc6c
@ -19,7 +19,7 @@ use stack;
|
|||||||
use debug;
|
use debug;
|
||||||
use arch::{self, StackPointer};
|
use arch::{self, StackPointer};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum State {
|
pub enum State {
|
||||||
/// Generator can be resumed. This is the initial state.
|
/// Generator can be resumed. This is the initial state.
|
||||||
Runnable,
|
Runnable,
|
||||||
|
Loading…
Reference in New Issue
Block a user