style(clippy): clean up the two lints in phase3 new code

QC smoke sweep flagged two clippy -D warnings lints in code this branch
introduced:

- crates/core/src/process_watch.rs — collapsible_if on the meeting-pattern
  match loop, merged the two conditions with &&.
- crates/mcp/src/lib.rs — let-else on the id unwrap that short-circuits a
  notification, switched to ? since handle_message already returns Option.

All other clippy lints under -D warnings (audio/capture, hotkey/linux,
storage/file_storage, diagnostics, the duplicate-detection helpers in
live.rs) predate this branch and are out of scope.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-21 09:06:47 +01:00
parent eb60a8bfd3
commit 6837700ac9
2 changed files with 5 additions and 7 deletions

View File

@@ -33,10 +33,10 @@ pub fn match_meeting_patterns(process_names: &[String], patterns: &[String]) ->
if needle.is_empty() {
continue;
}
if process_names.iter().any(|name| name.contains(&needle)) {
if !matches.iter().any(|existing| existing == &needle) {
matches.push(needle);
}
if process_names.iter().any(|name| name.contains(&needle))
&& !matches.iter().any(|existing| existing == &needle)
{
matches.push(needle);
}
}
matches