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

Update winnow to 0.6 #1290

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Update winnow to 0.6 #1290

merged 3 commits into from
Feb 13, 2024

Conversation

epage
Copy link
Contributor

@epage epage commented Feb 13, 2024

This required using winnow::stream::BStr in test errors because TreeError now needs impl Stream for I.

@epage epage force-pushed the winnow branch 4 times, most recently from 9d02954 to e175b20 Compare February 13, 2024 17:26
@@ -162,7 +162,7 @@ mod tests {
.map_err(to_bstr_err)
.expect_err("parse fails as > is missing")
.to_string(),
"in slice at ' 12345 -1215'\n 0: expected `<email>` at ' 12345 -1215'\n 1: expected `<name> <<email>>` at ' 12345 -1215'\n 2: expected `<name> <<email>> <timestamp> <+|-><HHMM>` at ' 12345 -1215'\n"
"in slice at ' 12345 -1215'\n 0: expected `<email>` at ' 12345 -1215'\n 1: expected `<name> <<email>>` at 'hello < 12345 -1215'\n 2: expected `<name> <<email>> <timestamp> <+|-><HHMM>` at 'hello < 12345 -1215'\n"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.6 included a change that allows TreeError to behave closer to how nom behaved with errors in capturing the start location for each stage things are processed rather than always attaching it to only the original error location

Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the great support 🙏, I appreciate it!

@Byron Byron merged commit a663e9f into GitoxideLabs:main Feb 13, 2024
@epage epage deleted the winnow branch February 13, 2024 21:13
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.

2 participants