mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
fix: mobile clippy warnings
This commit is contained in:
@@ -725,7 +725,7 @@ mod android {
|
||||
///
|
||||
/// It maps to the `NotificationManager.IMPORTANCE_*` constants and is serialized as its
|
||||
/// integer value. Only available on Android.
|
||||
#[derive(Debug, Clone, Copy, Serialize_repr, Deserialize_repr)]
|
||||
#[derive(Debug, Default, Clone, Copy, Serialize_repr, Deserialize_repr)]
|
||||
#[repr(u8)]
|
||||
pub enum Importance {
|
||||
/// The notifications are not shown.
|
||||
@@ -737,17 +737,12 @@ mod android {
|
||||
/// The notifications are shown and make a sound.
|
||||
///
|
||||
/// This is the value used when the channel does not define an importance.
|
||||
#[default]
|
||||
Default = 3,
|
||||
/// The notifications are shown, make a sound and pop up as a heads-up notification.
|
||||
High = 4,
|
||||
}
|
||||
|
||||
impl Default for Importance {
|
||||
fn default() -> Self {
|
||||
Self::Default
|
||||
}
|
||||
}
|
||||
|
||||
/// How much of a notification is shown on the lock screen.
|
||||
///
|
||||
/// It maps to the `Notification.VISIBILITY_*` constants and is serialized as its
|
||||
|
||||
Reference in New Issue
Block a user