On Web, implement Send and Sync where appropriate (#2834)

This commit is contained in:
daxpedda 2023-06-05 02:44:54 +02:00 committed by GitHub
parent eb2d3894ef
commit 8f7f3efc0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 609 additions and 196 deletions

View file

@ -1,7 +1,6 @@
#[allow(dead_code)]
fn needs_send<T: Send>() {}
#[cfg(not(wasm_platform))]
#[test]
fn event_loop_proxy_send() {
#[allow(dead_code)]
@ -11,7 +10,6 @@ fn event_loop_proxy_send() {
}
}
#[cfg(not(wasm_platform))]
#[test]
fn window_send() {
// ensures that `winit::Window` implements `Send`