4 ms·
You can use #[non_exhaustive] if you want to avoid this.
by sanxiyn 2y ago
You can use #[non_exhaustive] if you want to avoid this.
- deleted 2y ago[deleted]
- tialaramex 2y agoRight. This even tidily forbids the exhaustive matching for other people's code (ie requires them to write a default) using your crate but still allows it within the crate, reasoning that you should know which values you added even if you never promise an exhaustive list to your users.