fixed a error for a match on a non exhaustive enum

This commit is contained in:
Baptiste 2024-08-13 02:40:46 +02:00 committed by GitHub
parent cef0e68121
commit 6d0e946b5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -481,7 +481,7 @@ impl From<web_sys::NotificationPermission> for NotificationPermission {
web_sys::NotificationPermission::Default => Self::Default, web_sys::NotificationPermission::Default => Self::Default,
web_sys::NotificationPermission::Granted => Self::Granted, web_sys::NotificationPermission::Granted => Self::Granted,
web_sys::NotificationPermission::Denied => Self::Denied, web_sys::NotificationPermission::Denied => Self::Denied,
web_sys::NotificationPermission::__Nonexhaustive => Self::Default, _ => Self::Default,
} }
} }
} }