diff --git a/src/instance/mod.rs b/src/instance/mod.rs index 038b519d..a9f7b98b 100644 --- a/src/instance/mod.rs +++ b/src/instance/mod.rs @@ -71,7 +71,7 @@ impl RoyalnetInstance { crate::services::telegram::TelegramService::new( config::service_telegram::TELEGRAM_DATABASE_URL().clone(), config::service_telegram::TELEGRAM_BOT_TOKEN().clone(), - config::service_telegram::TELEGRAM_NOTIFICATION_CHATID().clone(), + *config::service_telegram::TELEGRAM_NOTIFICATION_CHATID(), ).await.expect("Unable to setup Telegram service.") } @@ -100,11 +100,11 @@ impl RoyalnetInstance { config::brooch::BROOCH_DATABASE_URL().clone(), config::brooch::BROOCH_GRAPHQL_URL(), config::brooch::BROOCH_STRATZ_TOKEN(), - config::brooch::BROOCH_WATCHED_GUILD_ID().clone(), - config::brooch::BROOCH_MIN_PLAYERS_TO_PROCESS().clone(), + *config::brooch::BROOCH_WATCHED_GUILD_ID(), + *config::brooch::BROOCH_MIN_PLAYERS_TO_PROCESS(), config::brooch::BROOCH_TELEGRAM_BOT_TOKEN().clone(), - config::brooch::BROOCH_NOTIFICATION_CHAT_ID().clone(), - config::brooch::BROOCH_MAX_IMP_WAIT_SECS().clone(), + *config::brooch::BROOCH_NOTIFICATION_CHAT_ID(), + *config::brooch::BROOCH_MAX_IMP_WAIT_SECS(), ).expect("Unable to setup Brooch service.") } diff --git a/src/services/brooch/mod.rs b/src/services/brooch/mod.rs index 5c809702..59ef4c85 100644 --- a/src/services/brooch/mod.rs +++ b/src/services/brooch/mod.rs @@ -136,7 +136,7 @@ impl BroochService { fn get_match_id(&self, r#match: &Match) -> AnyResult { log::trace!("Getting match id..."); - r#match.id.clone() + r#match.id .context("La richiesta è riuscita, ma non è stato ricevuto da STRATZ l'ID della partita.") } @@ -428,7 +428,7 @@ impl BroochService { log::trace!("Getting player's Steam name..."); - let player_steam_id = player_steam.id.clone() + let player_steam_id = player_steam.id .context("Non è stato ricevuto da STRATZ lo SteamID di almeno uno dei giocatori della partita.")?; log::trace!("Computing the two possible SteamIDs...");