We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UnsafeCell
1 parent 6308bb2 commit 1cd9437Copy full SHA for 1cd9437
ctru-rs/src/applets/error.rs
@@ -107,6 +107,8 @@ impl PanicHookConfig {
107
}
108
109
110
+ // There can only be one invocation of an applet active at any given time, so our `UnsafeCell`
111
+ // crimes *should* be okay here.
112
unsafe fn get(&self) -> *mut errorConf {
113
unsafe { (*self.error_app.get()).state.as_mut() }
114
0 commit comments