Skip to content

transition away from deprecated setters internally #4297

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

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

nolanderc
Copy link
Contributor

The old builder style setters are now deprecated, favoring the new .set_field(...) over the old .field(...). We should make use of the new setters internall.

In wgpu, we vendor the WebGPU bindings from this crate into wgpu itself. This triggers the deprecation warnings, and upgrading to the latest main, we see about 100 of them strewn throughout the generated bindings. This change aims to remove those warnings.

Verified

This commit was signed with the committer’s verified signature.
cfvescovo Carlo Federico Vescovo
Changes `ret.foo(foo)` into `ret.set_foo(foo)`
Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

Ha, nice catch!

@daxpedda daxpedda merged commit b3da9dc into rustwasm:main Nov 29, 2024
46 checks passed
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.

None yet

2 participants