diff --git a/src/generator.rs b/src/generator.rs index 05d4fa3..919ff38 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -108,6 +108,7 @@ impl Generator } /// Returns the state of the generator. + #[inline] pub fn state(&self) -> State { self.state } /// Extracts the stack from a generator when the generator function has returned.