Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve the default constructor mode when filling fields #12143

Merged
merged 1 commit into from
May 4, 2022

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented May 3, 2022

Instead of filling a boolean field with bool::default() it's not false and same for Option instead of using Option::default() it will be None

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
@Veykril
Copy link
Member

Veykril commented May 4, 2022

@bors r+

@bors
Copy link
Contributor

bors commented May 4, 2022

📌 Commit 6344eea has been approved by Veykril

@bors
Copy link
Contributor

bors commented May 4, 2022

⌛ Testing commit 6344eea with merge 1f709d5...

@bors
Copy link
Contributor

bors commented May 4, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 1f709d5 to master...

@bors bors merged commit 1f709d5 into rust-lang:master May 4, 2022
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.

3 participants