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

Simplify Clone for ThinSlicePtr #8247

Merged
merged 3 commits into from
Mar 30, 2023

Conversation

JoJoJet
Copy link
Member

@JoJoJet JoJoJet commented Mar 29, 2023

Objective

The type ThinSlicePtr has a manual implementation of Clone that manually clones each field. Since this type implements Copy, we can change this implementation to simply dereference &self.

@JoJoJet JoJoJet added C-Code-Quality A section of code that is hard to understand or change A-Pointers Relating to Bevy pointer abstractions labels Mar 29, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Mar 29, 2023
@james7132 james7132 disabled auto-merge March 30, 2023 10:10
@james7132 james7132 added this pull request to the merge queue Mar 30, 2023
Merged via the queue into bevyengine:main with commit f219a08 Mar 30, 2023
@JoJoJet JoJoJet deleted the clone-thin-slice-ptr branch March 30, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Pointers Relating to Bevy pointer abstractions C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants