diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-16 10:59:20 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-16 10:59:20 +0100 |
| commit | ac53bca7e315848864ff9e51703720b5b466bc42 (patch) | |
| tree | 775e425f0af2543eb12e4a4b1d4feb022611368f /src/lib/git_events.rs | |
| parent | 092b9606ff2b721d858a5c7b2b27a2f9942b4bc4 (diff) | |
chore: bump nightly rustfmt
to latest available and apply fmt fixes
Diffstat (limited to 'src/lib/git_events.rs')
| -rw-r--r-- | src/lib/git_events.rs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/git_events.rs b/src/lib/git_events.rs index 3ce7637..69406c1 100644 --- a/src/lib/git_events.rs +++ b/src/lib/git_events.rs | |||
| @@ -134,14 +134,15 @@ pub async fn generate_patch_event( | |||
| 134 | // code that makes it into the main branch, assuming | 134 | // code that makes it into the main branch, assuming |
| 135 | // the commit id is correct | 135 | // the commit id is correct |
| 136 | Tag::from_standardized(TagStandard::Reference(commit.to_string())), | 136 | Tag::from_standardized(TagStandard::Reference(commit.to_string())), |
| 137 | Tag::custom(TagKind::Custom(std::borrow::Cow::Borrowed("alt")), vec![ | 137 | Tag::custom( |
| 138 | format!( | 138 | TagKind::Custom(std::borrow::Cow::Borrowed("alt")), |
| 139 | vec![format!( | ||
| 139 | "git patch: {}", | 140 | "git patch: {}", |
| 140 | git_repo | 141 | git_repo |
| 141 | .get_commit_message_summary(commit) | 142 | .get_commit_message_summary(commit) |
| 142 | .unwrap_or_default() | 143 | .unwrap_or_default() |
| 143 | ), | 144 | )], |
| 144 | ]), | 145 | ), |
| 145 | ], | 146 | ], |
| 146 | if let Some(thread_event_id) = thread_event_id { | 147 | if let Some(thread_event_id) = thread_event_id { |
| 147 | vec![Tag::from_standardized(nostr_sdk::TagStandard::Event { | 148 | vec![Tag::from_standardized(nostr_sdk::TagStandard::Event { |
| @@ -205,9 +206,10 @@ pub async fn generate_patch_event( | |||
| 205 | .collect(), | 206 | .collect(), |
| 206 | vec![ | 207 | vec![ |
| 207 | // a fallback is now in place to extract this from the patch | 208 | // a fallback is now in place to extract this from the patch |
| 208 | Tag::custom(TagKind::Custom(std::borrow::Cow::Borrowed("commit")), vec![ | 209 | Tag::custom( |
| 209 | commit.to_string(), | 210 | TagKind::Custom(std::borrow::Cow::Borrowed("commit")), |
| 210 | ]), | 211 | vec![commit.to_string()], |
| 212 | ), | ||
| 211 | // this is required as patches cannot be relied upon to include the 'base | 213 | // this is required as patches cannot be relied upon to include the 'base |
| 212 | // commit' | 214 | // commit' |
| 213 | Tag::custom( | 215 | Tag::custom( |