This commit is contained in:
Jon Gillham
2021-09-19 11:36:20 +01:00
committed by GitHub
parent dbe43c203d
commit 3e87916b6c

View File

@@ -420,7 +420,7 @@ ExampleStateMachine::WaitingOnFooTxt(state) => {
}; };
*self = ExampleStateMachine::WaitingOnBarTxt(state); *self = ExampleStateMachine::WaitingOnBarTxt(state);
} else { } else {
*self = ExampleStateMachine::End(EndState)); *self = ExampleStateMachine::End(EndState);
return Poll::Ready(content); return Poll::Ready(content);
} }
} }
@@ -441,7 +441,7 @@ ExampleStateMachine::WaitingOnBarTxt(state) => {
match state.bar_txt_future.poll(cx) { match state.bar_txt_future.poll(cx) {
Poll::Pending => return Poll::Pending, Poll::Pending => return Poll::Pending,
Poll::Ready(bar_txt) => { Poll::Ready(bar_txt) => {
*self = ExampleStateMachine::End(EndState)); *self = ExampleStateMachine::End(EndState);
// from body of `example` // from body of `example`
return Poll::Ready(state.content + &bar_txt); return Poll::Ready(state.content + &bar_txt);
} }