Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan committed Dec 10, 2024
1 parent ae1c742 commit f99873a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/libraries/group_community_common/src/bots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde_repr::{Deserialize_repr, Serialize_repr};
use std::collections::{BTreeMap, BTreeSet};
use types::{BotGroupConfig, TimestampMillis, UserId};

#[derive(Serialize, Deserialize, Default, Debug)]
#[derive(Serialize, Deserialize, Default)]
pub struct GroupBots {
bots: BTreeMap<UserId, BotGroupConfig>,
updates: BTreeSet<(TimestampMillis, UserId, BotUpdate)>,
Expand Down Expand Up @@ -86,7 +86,7 @@ impl GroupBots {
}
}

#[derive(Serialize_repr, Deserialize_repr, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Debug)]
#[derive(Serialize_repr, Deserialize_repr, Clone, Copy, Eq, PartialEq, Ord, PartialOrd)]
#[repr(u8)]
pub enum BotUpdate {
Added = 1,
Expand Down
2 changes: 0 additions & 2 deletions backend/libraries/types/src/message_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ impl serde::Serialize for MessageId {
mod deserialize {
use super::MessageId;

// Simple visitor for deserialization from bytes. We don't support other number types
// as there's no need for it.
pub(super) struct MessageIdVisitor;

impl<'de> serde::de::Visitor<'de> for MessageIdVisitor {
Expand Down

0 comments on commit f99873a

Please sign in to comment.