fix: unused_unsafe lint

This commit is contained in:
xtqqczze 2026-09-05 16:53:43 +01:00 committed by Benoit de Chezelles
parent b99b1ca2cc
commit 24d4cbc4b1

View File

@ -95,11 +95,11 @@ impl Drop for NotifDelegate {
}
const CENTER: LazyLock<Retained<UNUserNotificationCenter>> =
LazyLock::new(|| unsafe { UNUserNotificationCenter::currentNotificationCenter() });
LazyLock::new(UNUserNotificationCenter::currentNotificationCenter);
pub fn initialize() {
static INIT: Once = Once::new();
INIT.call_once(|| unsafe {
INIT.call_once(|| {
CENTER.requestAuthorizationWithOptions_completionHandler(
UNAuthorizationOptions::Alert
| UNAuthorizationOptions::Provisional