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:
3
Cargo.lock
generated
3
Cargo.lock
generated
@@ -1822,6 +1822,9 @@ name = "smallvec"
|
||||
version = "1.10.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "smawk"
|
||||
|
||||
@@ -28,4 +28,4 @@ sentry = "0.31.3"
|
||||
lazy_static = "1.4.0"
|
||||
moka = { version = "0.11.1", features = ["future"] }
|
||||
axum = "0.6.18"
|
||||
smallvec = "1.10.0"
|
||||
smallvec = { version = "1.10.0", features = ["serde"] }
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
use core::fmt::Debug;
|
||||
use serde::Deserialize;
|
||||
use smallvec::SmallVec;
|
||||
|
||||
use super::formaters::{Format, FormatResult, FormatTitle};
|
||||
|
||||
@@ -192,7 +193,7 @@ pub struct Book {
|
||||
pub title: String,
|
||||
pub lang: String,
|
||||
// file_type: String,
|
||||
pub available_types: Vec<String>,
|
||||
pub available_types: SmallVec<[String; 4]>,
|
||||
// uploaded: String,
|
||||
pub annotation_exists: bool,
|
||||
pub authors: Vec<BookAuthor>,
|
||||
@@ -211,7 +212,7 @@ pub struct SearchBook {
|
||||
pub title: String,
|
||||
pub lang: String,
|
||||
// file_type: String,
|
||||
pub available_types: Vec<String>,
|
||||
pub available_types: SmallVec<[String; 4]>,
|
||||
// uploaded: String,
|
||||
pub annotation_exists: bool,
|
||||
pub authors: Vec<BookAuthor>,
|
||||
@@ -242,7 +243,7 @@ pub struct AuthorBook {
|
||||
pub title: String,
|
||||
pub lang: String,
|
||||
// file_type: String,
|
||||
pub available_types: Vec<String>,
|
||||
pub available_types: SmallVec<[String; 4]>,
|
||||
// uploaded: String,
|
||||
pub annotation_exists: bool,
|
||||
pub translators: Vec<BookTranslator>,
|
||||
@@ -272,7 +273,7 @@ pub struct TranslatorBook {
|
||||
pub title: String,
|
||||
pub lang: String,
|
||||
// file_type: String,
|
||||
pub available_types: Vec<String>,
|
||||
pub available_types: SmallVec<[String; 4]>,
|
||||
// uploaded: String,
|
||||
pub annotation_exists: bool,
|
||||
pub authors: Vec<BookAuthor>,
|
||||
@@ -303,7 +304,7 @@ pub struct SequenceBook {
|
||||
pub title: String,
|
||||
pub lang: String,
|
||||
// file_type: String,
|
||||
pub available_types: Vec<String>,
|
||||
pub available_types: SmallVec<[String; 4]>,
|
||||
// uploaded: String,
|
||||
pub authors: Vec<BookAuthor>,
|
||||
pub translators: Vec<BookTranslator>,
|
||||
|
||||
Reference in New Issue
Block a user