Merge pull request #147 from Baptistemontan/fix_non_exhaustive

fixed an error for a match on a non exhaustive enum
This commit is contained in:
Marc-Stefan Cassola 2024-08-13 01:55:48 +01:00 committed by GitHub
commit 5d1d8ad28f
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::Granted => Self::Granted,
web_sys::NotificationPermission::Denied => Self::Denied,
web_sys::NotificationPermission::__Nonexhaustive => Self::Default,
_ => Self::Default,
}
}
}