format code
This commit is contained in:
parent
c56c423491
commit
bb3a54a012
|
@ -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| {
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ fn discord_max_animated_emoji_default() -> u64 {
|
|||
50
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct Credit {
|
||||
pub artist: String,
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue