upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-03-22 16:02:35 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-03-27 17:18:58 +0000
commit761484b6db6100a8b7f81e09f8903232f9f3ffaf (patch)
treea12f2e6461f866da911bac41bd7ae03be4f930dc /src
parent71606283bf21f0fb4931850cd69d97344dca521e (diff)
refactor: more concise error message
to suppress the clippy too_many_lines in function warning
Diffstat (limited to 'src')
-rw-r--r--src/sub_commands/send.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs
index 91654d2..d9caf9b 100644
--- a/src/sub_commands/send.rs
+++ b/src/sub_commands/send.rs
@@ -545,8 +545,7 @@ pub fn generate_cover_letter_and_patch_events(
545 coordinate: Coordinate { 545 coordinate: Coordinate {
546 kind: nostr::Kind::Custom(REPO_REF_KIND), 546 kind: nostr::Kind::Custom(REPO_REF_KIND),
547 public_key: *repo_ref.maintainers.first() 547 public_key: *repo_ref.maintainers.first()
548 .context("repo reference should always have at least one maintainer - the issuer of the repo event") 548 .context("repo reference should always have at least one maintainer")?,
549 ?,
550 identifier: repo_ref.identifier.to_string(), 549 identifier: repo_ref.identifier.to_string(),
551 relays: repo_ref.relays.clone(), 550 relays: repo_ref.relays.clone(),
552 }, 551 },