Delete unnecessary brackets

This commit is contained in:
asami
2022-05-17 14:57:54 +09:00
parent c34db52262
commit 611698ec5f

View File

@@ -425,7 +425,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);
} }
} }
@@ -446,7 +446,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);
} }