fix: unused_unsafe lint

This commit is contained in:
xtqqczze authored and Benoit de Chezelles committed 2026-09-06 10:19:27 +02:00
1 parent b99b1ca2cc
commit 24d4cbc4b1
1 file changed
+2 -2
+2 -2
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