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

Replace deprecated EventLoop::run with EventLoop::run_app #1206

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

mtantaoui
Copy link
Contributor

Description: This PR resolves a deprecation warning introduced in #1191 related to the use of winit::event_loop::EventLoop::run. The deprecated EventLoop::run method is replaced with EventLoop::run_app as recommended by the winit crate.

Changes:

Updated EventLoop::run to EventLoop::run_app in rayon-demo/src/nbody/visualize.rs.
Testing:

Verified that the application compiles without warnings.
Tested the EventLoop functionality to confirm no changes in behavior.

Notes:
This resolves the deprecation warning while ensuring compatibility with the latest winit API.

@cuviper
Copy link
Member

cuviper commented Oct 28, 2024

That's great, thanks!

@cuviper cuviper added this pull request to the merge queue Oct 28, 2024
Merged via the queue into rayon-rs:main with commit b05841a Oct 28, 2024
4 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.

rayon-demo: port nbody visualize to EventLoop::run_app
2 participants