Skip to content

Return the correct state if accept_eof matches#140

Open
noeddl wants to merge 1 commit intoBurntSushi:masterfrom
noeddl:accept_eof
Open

Return the correct state if accept_eof matches#140
noeddl wants to merge 1 commit intoBurntSushi:masterfrom
noeddl:accept_eof

Conversation

@noeddl
Copy link

@noeddl noeddl commented Mar 22, 2022

When implementing accept_eof from the Automaton trait I noticed that it did not behave as I expected when using the automaton in a search_with_state. In cases in which accept_eof produced a match the state returned in the stream was not the one returned by accept_eof.

The fix in this PR works well for my use case, I hope it confirms to how accept_eof is intended to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant