From 7f4da8d43cb91912a4a5eb9a6dace884862fbc7e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 21 Jun 2023 10:40:55 -0700 Subject: [PATCH] lint --- web3_proxy/src/frontend/users/referral.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web3_proxy/src/frontend/users/referral.rs b/web3_proxy/src/frontend/users/referral.rs index 20627106..1b7b4274 100644 --- a/web3_proxy/src/frontend/users/referral.rs +++ b/web3_proxy/src/frontend/users/referral.rs @@ -157,9 +157,6 @@ pub async fn user_shared_referral_stats( let (referrer_record, referral_records) = query_result.into_iter().next().unwrap(); - let mut used_referral_code = None; - let mut referral_info = vec![]; - // collect info about each referral #[derive(Debug, Serialize)] struct Info { @@ -169,6 +166,8 @@ pub async fn user_shared_referral_stats( referred_address: Address, } + let mut used_referral_code = None; + let mut referral_info = vec![]; for referral_record in referral_records.into_iter() { used_referral_code = Some(referrer_record.referral_code.as_str());