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, } } }