From 6d0e946b5ac86eecab8f1a19085be3b342aa6132 Mon Sep 17 00:00:00 2001 From: Baptiste Date: Tue, 13 Aug 2024 02:40:46 +0200 Subject: [PATCH] fixed a error for a match on a non exhaustive enum --- src/use_web_notification.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use_web_notification.rs b/src/use_web_notification.rs index 01098a4..9d396c9 100644 --- a/src/use_web_notification.rs +++ b/src/use_web_notification.rs @@ -481,7 +481,7 @@ impl From for NotificationPermission { web_sys::NotificationPermission::Default => Self::Default, web_sys::NotificationPermission::Granted => Self::Granted, web_sys::NotificationPermission::Denied => Self::Denied, - web_sys::NotificationPermission::__Nonexhaustive => Self::Default, + _ => Self::Default, } } }