From fc3f22eac2bb81823f170f61ba9d39baff76b933 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 26 Jan 2024 21:32:21 +0000 Subject: chore: upgrade rust-nostr v0.27.0 this is a contribution from jk (sectore) that I rebased and squashed into this commit. the tests were broken in the last few commits to rush out some fixes. this change may introduce more issues because of Relay.respond_standard_req. --- src/sub_commands/prs/create.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/sub_commands/prs') diff --git a/src/sub_commands/prs/create.rs b/src/sub_commands/prs/create.rs index ced1edd..ad6a61a 100644 --- a/src/sub_commands/prs/create.rs +++ b/src/sub_commands/prs/create.rs @@ -329,7 +329,7 @@ pub fn generate_pr_and_patch_events( let pr_event = EventBuilder::new( nostr::event::Kind::Custom(PR_KIND), format!("{title}\r\n\r\n{description}"), - &pr_tags, + pr_tags, // TODO: add Repo event as root // TODO: people tag maintainers // TODO: add relay tags @@ -364,15 +364,15 @@ pub fn generate_patch_event( git_repo .make_patch_from_commit(commit) .context(format!("cannot make patch for commit {commit}"))?, - &[ + [ Tag::Reference(format!("r-{root_commit}")), Tag::Reference(commit.to_string()), Tag::Reference(commit_parent.to_string()), - Tag::Event( - pr_event_id, - None, // TODO: add relay - Some(Marker::Root), - ), + Tag::Event { + event_id: pr_event_id, + relay_url: None, // TODO: add relay + marker: Some(Marker::Root), + }, Tag::Generic( TagKind::Custom("commit".to_string()), vec![commit.to_string()], -- cgit v1.2.3