mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
This commit is contained in:
@@ -4,8 +4,8 @@ use super::commands::AnnotationCommand;
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct AnnotationFormatError {
|
pub struct AnnotationFormatError {
|
||||||
pub command: AnnotationCommand,
|
pub _command: AnnotationCommand,
|
||||||
pub text: String,
|
pub _text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Display for AnnotationFormatError {
|
impl fmt::Display for AnnotationFormatError {
|
||||||
|
|||||||
@@ -88,8 +88,8 @@ where
|
|||||||
|
|
||||||
if !annotation.is_normal_text() {
|
if !annotation.is_normal_text() {
|
||||||
return Err(Box::new(AnnotationFormatError {
|
return Err(Box::new(AnnotationFormatError {
|
||||||
command,
|
_command: command,
|
||||||
text: annotation.get_text().to_string(),
|
_text: annotation.get_text().to_string(),
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,3 @@ pub struct DownloadFile {
|
|||||||
pub filename: String,
|
pub filename: String,
|
||||||
pub caption: String,
|
pub caption: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
|
||||||
pub struct DownloadLink {
|
|
||||||
pub link: String,
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user