Skip to content

Commit

Permalink
Merge pull request #7 from akiomik/use-nostr-metadata
Browse files Browse the repository at this point in the history
Use nostr_sdk::Metadata instead of create::nostr::Metadata
  • Loading branch information
akiomik authored Jan 19, 2024
2 parents b3b40a6 + bc9c31d commit 3640d74
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 142 deletions.
2 changes: 1 addition & 1 deletion src/components/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::text::shorten_hex;
use crate::{
action::Action,
config::Config,
nostr::{nip10::ReplyTagsBuilder, Metadata, Profile, SortableEvent},
nostr::{nip10::ReplyTagsBuilder, Profile, SortableEvent},
widgets::ScrollableList,
widgets::TextNote,
};
Expand Down
1 change: 0 additions & 1 deletion src/components/status_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use ratatui::{prelude::*, widgets::*};

use crate::action::Action;
use crate::components::Component;
use crate::nostr::Metadata;
use crate::nostr::Profile;
use crate::tui::Frame;
use crate::widgets::PublicKey;
Expand Down
2 changes: 0 additions & 2 deletions src/nostr.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
mod connection;
mod connection_process;
mod event;
mod metadata;
pub mod nip10;
pub mod nip27;
mod profile;

pub use connection::Connection;
pub use connection_process::ConnectionProcess;
pub use event::SortableEvent;
pub use metadata::Metadata;
pub use profile::Profile;
136 changes: 0 additions & 136 deletions src/nostr/metadata.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/nostr/profile.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use nostr_sdk::prelude::*;

use crate::nostr::Metadata;
use crate::text::shorten_hex;

#[derive(Clone, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/text_note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ mod tests {
use rstest::*;

use super::*;
use crate::nostr::Metadata;
use crate::nostr::Profile;

#[fixture]
fn event() -> Event {
Expand Down

0 comments on commit 3640d74

Please sign in to comment.