From d4913eb6c63c703f1b2ebde8a466c43d326bea50 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 14 Nov 2023 20:44:47 -0700 Subject: [PATCH] looks like this is fixed --- src/client/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client/src/lib.rs b/src/client/src/lib.rs index 43c7a0f..fc91a37 100644 --- a/src/client/src/lib.rs +++ b/src/client/src/lib.rs @@ -81,10 +81,7 @@ impl Clients { } let client_states = unsafe { - // TODO: this should just be a normal transmute but due to compiler limitations it - // does not yet work with const generics - // https://github.com/rust-lang/rust/issues/61956 - std::mem::transmute_copy::<_, [RwLockReadGuard; N]>(&client_states) + std::mem::transmute_copy(&client_states) }; Ok(func(client_states).await)