49fec465
Fix all clippy warnings: remove needless returns
a73x 2026-03-21 09:01
Remove unnecessary return statements in follow_link() and remove_trusted_key() flagged by cargo clippy. Fixes: d2705d79 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
diff --git a/src/trust.rs b/src/trust.rs index c84ac8d..34b68aa 100644 --- a/src/trust.rs +++ b/src/trust.rs @@ -134,19 +134,19 @@ pub fn remove_trusted_key(repo: &Repository, pubkey: &str) -> Result<TrustedKey, let policy = load_trust_policy(repo)?; match policy { TrustPolicy::Unconfigured => { return Err(Error::Cmd(format!( Err(Error::Cmd(format!( "key {} is not in the trusted keys list", pubkey ))); ))) } TrustPolicy::Configured(keys) => { let removed = keys.iter().find(|k| k.pubkey == pubkey).cloned(); match removed { None => { return Err(Error::Cmd(format!( Err(Error::Cmd(format!( "key {} is not in the trusted keys list", pubkey ))); ))) } Some(removed_key) => { // Rewrite file without the removed key diff --git a/src/tui.rs b/src/tui.rs index 1df8bb8..c3c5d8b 100644 --- a/src/tui.rs +++ b/src/tui.rs @@ -215,7 +215,7 @@ impl App { } } } return false; false } Tab::Patches => { // From a patch, jump to the linked issue (fixes field) @@ -243,7 +243,7 @@ impl App { } } } return false; false } } }