1
0
Fork 0

format code

This commit is contained in:
ChaotiCryptidz 2022-08-22 16:40:08 +01:00
parent c56c423491
commit bb3a54a012
No known key found for this signature in database
4 changed files with 7 additions and 4 deletions

View file

@ -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<String, Sticker> = pack_contents
.iter()
.map(|emoji_name| {

View file

@ -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());
}
}

View file

@ -43,7 +43,6 @@ fn discord_max_animated_emoji_default() -> u64 {
50
}
#[derive(Debug, Clone, Deserialize)]
pub struct Credit {
pub artist: String,

View file

@ -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";