Skip to content

Commit

Permalink
clean unused
Browse files Browse the repository at this point in the history
  • Loading branch information
vazw committed Jun 3, 2024
1 parent 348ea7c commit 288ad4d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,12 @@ pub struct NostrUser {

impl From<UsersData> for NostrUser {
fn from(user: UsersData) -> NostrUser {
fn str_to_string(s: &str) -> String {
s.to_string()
}
let mut names: HashMap<String, String> = HashMap::new();
names.insert(user.name.clone(), user.pubkey.clone());
let mut relays: HashMap<String, Vec<String>> = HashMap::new();
relays.insert(user.pubkey.clone(), RELAYS);
relays.insert(user.pubkey.clone(), RELAYS.clone());
let mut nip_46: HashMap<String, Vec<String>> = HashMap::new();
nip_46.insert(user.pubkey.clone(), SIGN_RELAYS);
nip_46.insert(user.pubkey.clone(), SIGN_RELAYS.clone());
NostrUser {
names,
relays,
Expand Down

0 comments on commit 288ad4d

Please sign in to comment.