From ac53bca7e315848864ff9e51703720b5b466bc42 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 16 Jul 2025 10:59:20 +0100 Subject: chore: bump nightly rustfmt to latest available and apply fmt fixes --- src/bin/git_remote_nostr/push.rs | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) (limited to 'src/bin/git_remote_nostr/push.rs') diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index 04fc4d8..9ff8af0 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs @@ -1049,10 +1049,13 @@ async fn get_merged_status_events( let (ahead, _) = git_repo.get_commits_ahead_behind(&tip_of_remote_branch, &tip_of_pushed_branch)?; - let commit_events = get_events_from_local_cache(git_repo.get_path()?, vec![ - nostr::Filter::default().kind(nostr::Kind::GitPatch), - // TODO: limit by repo_ref - ]) + let commit_events = get_events_from_local_cache( + git_repo.get_path()?, + vec![ + nostr::Filter::default().kind(nostr::Kind::GitPatch), + // TODO: limit by repo_ref + ], + ) .await?; let merged_proposals_info = @@ -1129,9 +1132,12 @@ async fn get_merged_proposals_info( proposals.entry(proposal_id).or_default(); // ignore revisions without all the merged commits if entry_revision_id == &revision_id { - merged_patches.insert(*commit_hash, MergedPRCommitType::PatchCommit { - event_id: patch_event.id, - }); + merged_patches.insert( + *commit_hash, + MergedPRCommitType::PatchCommit { + event_id: patch_event.id, + }, + ); } } } @@ -1156,9 +1162,12 @@ async fn get_merged_proposals_info( proposals.entry(proposal_id).or_default(); // ignore revisions without all the applied commits if entry_revision_id == &revision_id { - merged_patches.insert(*commit_hash, MergedPRCommitType::PatchApplied { - event_id: patch_event.id, - }); + merged_patches.insert( + *commit_hash, + MergedPRCommitType::PatchApplied { + event_id: patch_event.id, + }, + ); } } } @@ -1405,9 +1414,10 @@ async fn get_proposal_and_revision_root_from_patch( .clone(), )?; - get_events_from_local_cache(git_repo.get_path()?, vec![ - nostr::Filter::default().id(proposal_or_revision_id), - ]) + get_events_from_local_cache( + git_repo.get_path()?, + vec![nostr::Filter::default().id(proposal_or_revision_id)], + ) .await? .first() .unwrap() -- cgit v1.2.3