Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nostr_sdk::Metadata instead of create::nostr::Metadata #7

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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