chore: fix Rust 1.91.0 lint for derivable Default

This commit is contained in:
link2xt
2025-10-31 05:50:00 +00:00
committed by l
parent 08f8f488b1
commit 59959259bf
4 changed files with 8 additions and 27 deletions

View File

@@ -381,9 +381,11 @@ impl rusqlite::types::FromSql for MsgId {
ToSql,
Serialize,
Deserialize,
Default,
)]
#[repr(u8)]
pub(crate) enum MessengerMessage {
#[default]
No = 0,
Yes = 1,
@@ -391,12 +393,6 @@ pub(crate) enum MessengerMessage {
Reply = 2,
}
impl Default for MessengerMessage {
fn default() -> Self {
Self::No
}
}
/// An object representing a single message in memory.
/// The message object is not updated.
/// If you want an update, you have to recreate the object.