Skip to content

Use real #[non_exhaustive] attribute.#625

Open
wt wants to merge 1 commit intorust-embedded:masterfrom
wt:use_real_non_exhaustive_attr
Open

Use real #[non_exhaustive] attribute.#625
wt wants to merge 1 commit intorust-embedded:masterfrom
wt:use_real_non_exhaustive_attr

Conversation

@wt
Copy link
Contributor

@wt wt commented Mar 10, 2026

The #[non_exhaustive] attr has existed since rust 1.40.0. We should use it instead of the older manual method for creating a non-exhaustive struct.

The `#[non_exhaustive]` attr has existed since rust 1.40.0. We should
use it instead of the older manual method for creating a non-exhaustive
struct.
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