diff --git a/src/deploy_discord.rs b/src/deploy_discord.rs index c0e84dc..e7e4a08 100644 --- a/src/deploy_discord.rs +++ b/src/deploy_discord.rs @@ -93,7 +93,10 @@ pub async fn deploy_discord( .map(|loc| (loc.deploy_name.clone(), loc)) .collect(); - let pack_contents = sticker_config.sticker_sets.get(&deploy_where.pack_id).unwrap(); + let pack_contents = sticker_config + .sticker_sets + .get(&deploy_where.pack_id) + .unwrap(); let pack_emojis: HashMap = pack_contents .iter() .map(|emoji_name| { diff --git a/src/deploy_telegram.rs b/src/deploy_telegram.rs index 042b313..4e8a0da 100644 --- a/src/deploy_telegram.rs +++ b/src/deploy_telegram.rs @@ -48,7 +48,8 @@ impl TelegramStickerIDState { } pub fn set(&mut self, file_id: &str, sticker_name: &str) { - self.data.insert(file_id.to_owned(), sticker_name.to_owned()); + self.data + .insert(file_id.to_owned(), sticker_name.to_owned()); } } diff --git a/src/sticker_config.rs b/src/sticker_config.rs index c6a0a9b..ffaefbb 100644 --- a/src/sticker_config.rs +++ b/src/sticker_config.rs @@ -43,7 +43,6 @@ fn discord_max_animated_emoji_default() -> u64 { 50 } - #[derive(Debug, Clone, Deserialize)] pub struct Credit { pub artist: String, diff --git a/src/tg_api.rs b/src/tg_api.rs index 32b715a..c802121 100644 --- a/src/tg_api.rs +++ b/src/tg_api.rs @@ -1,5 +1,5 @@ -use std::{collections::HashMap, error::Error}; use serde::{Deserialize, Serialize}; +use std::{collections::HashMap, error::Error}; const API_BASE: &str = "https://api.telegram.org";