From 8d1211750bd30f429c327ba45f5a908479ff2cff Mon Sep 17 00:00:00 2001 From: xeon Date: Sun, 4 Aug 2024 15:46:43 +0300 Subject: [PATCH] chore: fix warnings --- nap_gameserver/src/handlers/gacha.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nap_gameserver/src/handlers/gacha.rs b/nap_gameserver/src/handlers/gacha.rs index 20c0163..6d4445d 100644 --- a/nap_gameserver/src/handlers/gacha.rs +++ b/nap_gameserver/src/handlers/gacha.rs @@ -66,7 +66,7 @@ pub async fn on_do_gacha( // tracing::info!("cost_item_count: {}", req.cost_item_count); let mut pull_count = if req.cost_item_count > 1 { 10 } else { 1 }; - let mut cost_count = pull_count; + let cost_count = pull_count; if pull_count == 10 { let discount_tag = &gachaconf.common_properties.ten_pull_discount_tag; @@ -156,7 +156,6 @@ pub async fn on_gacha_free_agent( req: GachaFreeAgentCsReq, ) -> NetResult { let gachaconf = global_gacha_config(); - let gacha_model = &mut _player.gacha_model; let role_model = &mut _player.role_model; let pull_time = Local::now(); let target_pool = get_gacha_pool( @@ -529,7 +528,7 @@ fn generate_gacha_info_from_pool( } } - if let Some(priority_policy_tag) = chooseable_policy_tag { + if let Some(_priority_policy_tag) = chooseable_policy_tag { // if let Some(item) = status_bin // .rarity_status_map // .get(&rarity_items.rarity)