mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-21 18:44:19 +00:00
Remove leftover AnyError
in TelegramService
This commit is contained in:
parent
ec3f5daff7
commit
eaad114f5c
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ use commands::Command;
|
||||||
use dependencies::interface_database::DatabaseInterface;
|
use dependencies::interface_database::DatabaseInterface;
|
||||||
use keyboard_callbacks::KeyboardCallback;
|
use keyboard_callbacks::KeyboardCallback;
|
||||||
|
|
||||||
use crate::utils::anyhow_result::{AnyError, AnyResult};
|
use crate::utils::anyhow_result::AnyResult;
|
||||||
use crate::utils::telegram_string::TelegramEscape;
|
use crate::utils::telegram_string::TelegramEscape;
|
||||||
|
|
||||||
use super::RoyalnetService;
|
use super::RoyalnetService;
|
||||||
|
@ -102,7 +102,7 @@ impl TelegramService {
|
||||||
.context("Aggiornamento dei comandi del bot non riuscito.")
|
.context("Aggiornamento dei comandi del bot non riuscito.")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dispatcher(&mut self) -> Dispatcher<Bot, AnyError, DefaultKey> {
|
fn dispatcher(&mut self) -> Dispatcher<Bot, anyhow::Error, DefaultKey> {
|
||||||
log::debug!("Building dispatcher...");
|
log::debug!("Building dispatcher...");
|
||||||
|
|
||||||
let bot_name = self.me.user.username.as_ref().unwrap();
|
let bot_name = self.me.user.username.as_ref().unwrap();
|
||||||
|
|
Loading…
Reference in a new issue