mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -175,14 +175,15 @@ impl Format for Book {
|
|||||||
fn format(&self, max_size: u32) -> String {
|
fn format(&self, max_size: u32) -> String {
|
||||||
let book_title = {
|
let book_title = {
|
||||||
let Book { title, lang, .. } = self;
|
let Book { title, lang, .. } = self;
|
||||||
format!("📖 {title} | {lang}\n")
|
|
||||||
};
|
|
||||||
|
|
||||||
let pages_count = match self.pages {
|
let pages_count = match self.pages {
|
||||||
Some(1) | None => "".to_string(),
|
Some(1) | None => "".to_string(),
|
||||||
Some(v) => format!(" [ {v}с. ]\n\n"),
|
Some(v) => format!(" [ {v}с. ]\n\n"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
format!("📖 {title} | {lang}{pages_count}\n")
|
||||||
|
};
|
||||||
|
|
||||||
let annotations = match self.annotation_exists {
|
let annotations = match self.annotation_exists {
|
||||||
true => {
|
true => {
|
||||||
let Book { id, .. } = self;
|
let Book { id, .. } = self;
|
||||||
|
|||||||
Reference in New Issue
Block a user