1
Fork 0
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:
Steffo 2024-08-19 07:56:02 +02:00
parent ec3f5daff7
commit eaad114f5c
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -11,7 +11,7 @@ use commands::Command;
use dependencies::interface_database::DatabaseInterface;
use keyboard_callbacks::KeyboardCallback;
use crate::utils::anyhow_result::{AnyError, AnyResult};
use crate::utils::anyhow_result::AnyResult;
use crate::utils::telegram_string::TelegramEscape;
use super::RoyalnetService;
@ -102,7 +102,7 @@ impl TelegramService {
.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...");
let bot_name = self.me.user.username.as_ref().unwrap();