Skip to content

Conversation

HammockSunburn
Copy link
Contributor

Implementing is_empty() on RegexSet makes the API similar to standard
library collections like Vec and BTreeSet. The clippy lint
len_without_is_empty recommends that items which implement len()
should implement is_empty().

Implementing `is_empty()` on RegexSet makes the API similar to standard
library collections like `Vec` and `BTreeSet`. The clippy lint
`len_without_is_empty` recommends that items which implement `len()`
should implement `is_empty()`.
BurntSushi pushed a commit that referenced this pull request Oct 11, 2020
This adheres to standard conventions for collections of things.

Closes #687
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