Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return the correct state if accept_eof matches #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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