From 24d4cbc4b1480ebe7f39c0c7dfb30dff01006c27 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sat, 5 Sep 2026 16:53:43 +0100 Subject: [PATCH] fix: unused_unsafe lint --- wezterm-toast-notification/src/macos.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wezterm-toast-notification/src/macos.rs b/wezterm-toast-notification/src/macos.rs index e10eb04c9..7dcaf061e 100644 --- a/wezterm-toast-notification/src/macos.rs +++ b/wezterm-toast-notification/src/macos.rs @@ -95,11 +95,11 @@ impl Drop for NotifDelegate { } const CENTER: LazyLock> = - 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