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.
1 parent 8d1bd8e commit 394da2fCopy full SHA for 394da2f
ctru-rs/src/applets/error.rs
@@ -128,7 +128,7 @@ pub(crate) fn set_panic_hook(call_old_hook: bool) {
128
129
let mut lock = ERROR_CONF.lock().unwrap();
130
131
- unsafe { errorInit(&raw mut *lock, WordWrap::Enabled as _, 0) };
+ unsafe { errorInit(&mut *lock, WordWrap::Enabled as _, 0) };
132
133
let old_hook = std::panic::take_hook();
134
@@ -142,7 +142,7 @@ pub(crate) fn set_panic_hook(call_old_hook: bool) {
142
143
144
145
- let error_conf = unsafe { (&raw mut *lock).as_mut().unwrap() };
+ let error_conf = &mut *lock;
146
147
let mut writer = ErrorConfWriter {
148
error_conf,
0 commit comments