From 761484b6db6100a8b7f81e09f8903232f9f3ffaf Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 22 Mar 2024 16:02:35 +0000 Subject: refactor: more concise error message to suppress the clippy too_many_lines in function warning --- src/sub_commands/send.rs | 3 +-- 1 file changed, 1 insertion(+), 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( coordinate: Coordinate { kind: nostr::Kind::Custom(REPO_REF_KIND), public_key: *repo_ref.maintainers.first() - .context("repo reference should always have at least one maintainer - the issuer of the repo event") - ?, + .context("repo reference should always have at least one maintainer")?, identifier: repo_ref.identifier.to_string(), relays: repo_ref.relays.clone(), }, -- cgit v1.2.3