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

derive more clones, add to_writer impl, restore lost api #58

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

bminixhofer
Copy link
Owner

@bminixhofer bminixhofer commented Apr 1, 2021

This should fix #57. Would be great if you could take a quick look @drahnr, I'll then merge and release.

I also added Clone derives, that was possible through the lazy Regex initialization now.

@@ -223,3 +207,21 @@ impl<'a> Iterator for RulesIterMut<'a> {
.find(|rule| selector.map_or(true, |s| s.is_match(rule.id())))
}
}

impl IntoIterator for Rules {
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

Copy link
Contributor

@drahnr drahnr left a comment

Choose a reason for hiding this comment

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

Thanks for the lightning speed response, much appreciated!

@bminixhofer bminixhofer merged commit 01884f6 into main Apr 1, 2021
@bminixhofer bminixhofer deleted the api-fixes branch April 1, 2021 17:35
@bminixhofer
Copy link
Owner Author

This works again as of Release 0.5.3 now, Release 0.5.2 had a problem with CI.

drahnr pushed a commit to drahnr/nlprule that referenced this pull request Apr 7, 2021
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.

Usability of the rules API degraded from 0.4.6 to 0.5.1
2 participants