mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fixes
This commit is contained in:
25
src/bots/approved_bot/modules/utils/errors.rs
Normal file
25
src/bots/approved_bot/modules/utils/errors.rs
Normal file
@@ -0,0 +1,25 @@
|
||||
use std::fmt;
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct CallbackQueryParseError;
|
||||
|
||||
impl fmt::Display for CallbackQueryParseError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{:?}", self)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for CallbackQueryParseError {}
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct CommandParseError;
|
||||
|
||||
impl fmt::Display for CommandParseError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{:?}", self)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for CommandParseError {}
|
||||
Reference in New Issue
Block a user