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
5 changed files with 9 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ mod platform {
// ManuallyDrop to prevent destructors from running.
//
// A static, thread-local map of graphics contexts to open windows.
static GC: ManuallyDrop<RefCell<Option<GraphicsContext>>> = ManuallyDrop::new(RefCell::new(None));
static GC: ManuallyDrop<RefCell<Option<GraphicsContext>>> = const { ManuallyDrop::new(RefCell::new(None)) };
}
/// The graphics context used to draw to a window.