diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-03-22 16:02:35 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-03-27 17:18:58 +0000 |
| commit | 761484b6db6100a8b7f81e09f8903232f9f3ffaf (patch) | |
| tree | a12f2e6461f866da911bac41bd7ae03be4f930dc /src/sub_commands | |
| parent | 71606283bf21f0fb4931850cd69d97344dca521e (diff) | |
refactor: more concise error message
to suppress the clippy too_many_lines in function warning
Diffstat (limited to 'src/sub_commands')
| -rw-r--r-- | src/sub_commands/send.rs | 3 |
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 | }, |