mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-22 02:54:21 +00:00
Remove clones of Copy
able types
This commit is contained in:
parent
887fca9c30
commit
58a4cc478f
2 changed files with 7 additions and 7 deletions
|
@ -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.")
|
||||
}
|
||||
|
||||
|
|
|
@ -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...");
|
||||
|
|
Loading…
Reference in a new issue