fix: unused_unsafe lint
This commit is contained in:
1 parent
b99b1ca2cc
commit
24d4cbc4b1
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user