chore: fix nightly CI on linux/ios
Co-authored-by: Mads Marquart <mads@marquart.dk>
This commit is contained in:
parent
8ddd10a7f9
commit
a18658284c
3 changed files with 5 additions and 5 deletions
|
|
@ -150,6 +150,8 @@ impl AppState {
|
|||
// must be mut because plain `static` requires `Sync`
|
||||
static mut APP_STATE: RefCell<Option<AppState>> = RefCell::new(None);
|
||||
|
||||
#[allow(unknown_lints)] // New lint below
|
||||
#[allow(static_mut_refs)] // TODO: Use `MainThreadBound` instead.
|
||||
let mut guard = unsafe { APP_STATE.borrow_mut() };
|
||||
if guard.is_none() {
|
||||
#[inline(never)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue