Skip to content

Commit 1cd9437

Browse files
committed
Clarify our UnsafeCell shenanigans
1 parent 6308bb2 commit 1cd9437

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ctru-rs/src/applets/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ impl PanicHookConfig {
107107
}
108108
}
109109

110+
// There can only be one invocation of an applet active at any given time, so our `UnsafeCell`
111+
// crimes *should* be okay here.
110112
unsafe fn get(&self) -> *mut errorConf {
111113
unsafe { (*self.error_app.get()).state.as_mut() }
112114
}

0 commit comments

Comments
 (0)