mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Optimize
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
use smallvec::SmallVec;
|
||||
use smartstring::alias::String as SmartString;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::config;
|
||||
@@ -23,7 +26,7 @@ pub struct CreateTaskData {
|
||||
pub object_id: u32,
|
||||
pub object_type: TaskObjectType,
|
||||
pub file_format: String,
|
||||
pub allowed_langs: Vec<String>,
|
||||
pub allowed_langs: SmallVec<[SmartString; 3]>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user