Fix nightly CI (#3526)
This commit is contained in:
parent
352e70b8ac
commit
010787a430
5 changed files with 9 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue