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

Use () instead of PhantomData as IdentityManager's Input type. #2972

Merged
merged 3 commits into from
Sep 2, 2022

Conversation

jimblandy
Copy link
Member

@jimblandy jimblandy commented Aug 19, 2022

PhantomData suggests that there's some sort of persuasion required for lifetime variance inference or other sorts of arcana, but it doesn't seem to be necessary at all. () works just fine.

I'm a little worried about this on Chesterton's Fence grounds, but there's only one way to find out!

Checklist

  • Run cargo clippy.
  • Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@jimblandy jimblandy force-pushed the id-input-no-phantomdata branch from e67872c to ce3e2f7 Compare August 19, 2022 05:37
@jimblandy jimblandy requested a review from kvark August 19, 2022 05:38
PhantomData suggests that there's some sort of persuasion required
for lifetime variance inference or other sorts of arcana, but it
doesn't seem to be necessary at all. `()` works just fine.
@jimblandy jimblandy force-pushed the id-input-no-phantomdata branch from ce3e2f7 to a820aef Compare August 19, 2022 05:44
@jimblandy jimblandy requested a review from crowlKats as a code owner August 19, 2022 05:44
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I likee it

cwfitzgerald and others added 2 commits August 28, 2022 20:02
PhantomData suggests that there's some sort of persuasion required
for lifetime variance inference or other sorts of arcana, but it
doesn't seem to be necessary at all. `()` works just fine.
@jimblandy jimblandy merged commit 701564d into gfx-rs:master Sep 2, 2022
@jimblandy jimblandy deleted the id-input-no-phantomdata branch September 2, 2022 22:37
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.

2 participants