Skip to content

Remove unnecessary unsafe impls for WinitWindows on Wasm#11270

Merged
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
kettle11:wasm_multithreading
Jan 9, 2024
Merged

Remove unnecessary unsafe impls for WinitWindows on Wasm#11270
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
kettle11:wasm_multithreading

Conversation

@kettle11

@kettle11 kettle11 commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

Objective

In the past winit::window::Window was not Send + Sync on web. rust-windowing/winit#2834 made winit::window::Window Sync + Send so Bevy's unsafe impl is no longer necessary.

Solution

Remove the unsafe impls.

@github-actions

github-actions Bot commented Jan 9, 2024

Copy link
Copy Markdown
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@alice-i-cecile alice-i-cecile added A-Windowing Platform-agnostic interface layer to run your app in C-Code-Quality A section of code that is hard to understand or change labels Jan 9, 2024
@matiqo15 matiqo15 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 Jan 9, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 9, 2024
Merged via the queue into bevyengine:main with commit 13d3de8 Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Windowing Platform-agnostic interface layer to run your app in 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.

4 participants