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