rust-unofficial / patterns

A catalogue of Rust design patterns, anti-patterns and idioms
https://rust-unofficial.github.io/patterns/
Mozilla Public License 2.0
7.95k stars 362 forks source link

Add note on #[non_exhaustive] for enums #168

Closed netzdoktor closed 3 years ago

simonsan commented 3 years ago

Hey thank you for the contribution, we are currently working on this in #135, issue is filed under #132 maybe you and @rcoh could work together on updating the article ;-)

MarcoIeni commented 3 years ago

Exactly, closing this. If you want to join the discussion in the issue or the PR you are welcome! :)

simonsan commented 3 years ago

We could merge this as a statement as long as the new article is not online, what do you think?

simonsan commented 3 years ago

Thank you for the contrib! ;-)

netzdoktor commented 3 years ago

You're welcome. Tuning into the issue + PR you have mentioned.

Sorry for making this PR without checking existing work. I read the article and though I should file the PR before I forget, also because the change was rather simple. But revisiting the whole article for new state of Rust makes total sense!