Fix nightly CI (#3526)

This commit is contained in:
daxpedda 2024-02-26 09:46:12 +01:00 committed by GitHub
parent 352e70b8ac
commit 010787a430
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 6 deletions

View file

@ -199,7 +199,7 @@ fn duration_millis_ceil(duration: Duration) -> u32 {
fn has_scheduler_support(window: &web_sys::Window) -> bool {
thread_local! {
static SCHEDULER_SUPPORT: OnceCell<bool> = OnceCell::new();
static SCHEDULER_SUPPORT: OnceCell<bool> = const { OnceCell::new() };
}
SCHEDULER_SUPPORT.with(|support| {
@ -221,7 +221,7 @@ fn has_scheduler_support(window: &web_sys::Window) -> bool {
fn has_idle_callback_support(window: &web_sys::Window) -> bool {
thread_local! {
static IDLE_CALLBACK_SUPPORT: OnceCell<bool> = OnceCell::new();
static IDLE_CALLBACK_SUPPORT: OnceCell<bool> = const { OnceCell::new() };
}
IDLE_CALLBACK_SUPPORT.with(|support| {