From 65757276a311d806d3041dcb861f9110186ace89 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 30 Apr 2024 15:09:02 +0100 Subject: Use serde_json directly Instead of relying on nostr_sdk reexport --- src/actions/nostr.rs | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/actions/nostr.rs b/src/actions/nostr.rs index 6ad91b5..f4ecb86 100644 --- a/src/actions/nostr.rs +++ b/src/actions/nostr.rs @@ -1,14 +1,15 @@ -use super::Action; -use crate::message::MessageConfig; -use crate::message::MessageParams; +use std::fs::File; +use std::io::BufReader; +use std::io::Write; +use std::net::SocketAddr; +use std::path::PathBuf; + use anyhow::{Context, Result}; use async_scoped::TokioScope; use async_trait::async_trait; use const_format::formatcp; use nostr_relay_pool::RelayOptions; use nostr_sdk::nips::nip05; -use nostr_sdk::serde_json::from_reader; -use nostr_sdk::serde_json::to_string; use nostr_sdk::Client; use nostr_sdk::Keys; use nostr_sdk::Metadata; @@ -16,11 +17,12 @@ use nostr_sdk::PublicKey; use nostr_sdk::ToBech32; use serde::Deserialize; use serde::Serialize; -use std::fs::File; -use std::io::BufReader; -use std::io::Write; -use std::net::SocketAddr; -use std::path::PathBuf; +use serde_json::from_reader; +use serde_json::to_string; + +use super::Action; +use crate::message::MessageConfig; +use crate::message::MessageParams; #[derive(Debug, Clone, Deserialize, Serialize)] struct NostrData { -- cgit v1.2.3-70-g09d2