From daee09e31afe6038b50f55ad744f17086fcd2b30 Mon Sep 17 00:00:00 2001
From: poka <poka@p2p.legal>
Date: Sat, 17 May 2025 03:09:41 +0200
Subject: [PATCH] fix warn

---
 src/commands/profile.rs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/commands/profile.rs b/src/commands/profile.rs
index 22b6e7d..bab33d5 100644
--- a/src/commands/profile.rs
+++ b/src/commands/profile.rs
@@ -749,7 +749,6 @@ async fn set_profile(
     let nsec = get_nostr_nsec(&keypair)?;
     
     // ---- START: Calculate g1pubv2 and g1pub for tags ----
-    let mut g1pubv2_for_tag: Option<String> = None;
     let mut g1pub_for_tag: Option<String> = None;
 
     let account_id: sp_core::crypto::AccountId32 = match &keypair {
@@ -757,7 +756,7 @@ async fn set_profile(
         KeyPair::Ed25519(pair) => pair.public().into(),
     };
     let gdev_ss58_address = account_id.to_ss58check_with_version(sp_core::crypto::Ss58AddressFormat::custom(42));
-    g1pubv2_for_tag = Some(gdev_ss58_address);
+    let g1pubv2_for_tag: Option<String> = Some(gdev_ss58_address);
 
     match cesium::compute_g1v1_public_key(&keypair) {
         Ok(pubkey_g1) => g1pub_for_tag = Some(pubkey_g1),
-- 
GitLab