Skip to content

Use #[derive(Default)] instead of manual impl when possible#134363

Merged
bors merged 1 commit intorust-lang:masterfrom
estebank:derive-default
Dec 23, 2024
Merged

Use #[derive(Default)] instead of manual impl when possible#134363
bors merged 1 commit intorust-lang:masterfrom
estebank:derive-default

Conversation

@estebank
Copy link
Contributor

While working on #134175 I noticed a few manual Default impls that could be derived instead. These likely predate the existence of the #[default] attribute for enums.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants