diff --git a/src/api.rs b/src/api.rs index 992c0d9..fa495da 100644 --- a/src/api.rs +++ b/src/api.rs @@ -40,15 +40,12 @@ pub struct NostrUser { impl From for NostrUser { fn from(user: UsersData) -> NostrUser { - fn str_to_string(s: &str) -> String { - s.to_string() - } let mut names: HashMap = HashMap::new(); names.insert(user.name.clone(), user.pubkey.clone()); let mut relays: HashMap> = HashMap::new(); - relays.insert(user.pubkey.clone(), RELAYS); + relays.insert(user.pubkey.clone(), RELAYS.clone()); let mut nip_46: HashMap> = HashMap::new(); - nip_46.insert(user.pubkey.clone(), SIGN_RELAYS); + nip_46.insert(user.pubkey.clone(), SIGN_RELAYS.clone()); NostrUser { names, relays,