1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-22 11:04:21 +00:00

Remove clones of Copyable types

This commit is contained in:
Steffo 2024-08-08 00:41:27 +02:00
parent 887fca9c30
commit 58a4cc478f
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
2 changed files with 7 additions and 7 deletions

View file

@ -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.")
}

View file

@ -136,7 +136,7 @@ impl BroochService {
fn get_match_id(&self, r#match: &Match) -> AnyResult<Long> {
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...");