mirror of
https://github.com/wezterm/wezterm.git
synced 2026-11-08 01:21:45 +08:00
fix: unused_unsafe lint
This commit is contained in:
parent
b99b1ca2cc
commit
24d4cbc4b1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user