Implement Eq on generator::State.

This commit is contained in:
whitequark 2016-10-01 19:21:09 +00:00 committed by edef
parent f9b6cd17f6
commit 243e9ffc6c

View File

@ -19,7 +19,7 @@ use stack;
use debug;
use arch::{self, StackPointer};
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum State {
/// Generator can be resumed. This is the initial state.
Runnable,