From eaad114f5c5c4658f88c5f7b54a3ac1d2233c59c Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 19 Aug 2024 07:56:02 +0200 Subject: [PATCH] Remove leftover `AnyError` in `TelegramService` --- src/services/telegram/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/telegram/mod.rs b/src/services/telegram/mod.rs index 0fbb6538..5ed71ddb 100644 --- a/src/services/telegram/mod.rs +++ b/src/services/telegram/mod.rs @@ -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 { + fn dispatcher(&mut self) -> Dispatcher { log::debug!("Building dispatcher..."); let bot_name = self.me.user.username.as_ref().unwrap();