diff --git a/README.md b/README.md index 6643108..27a810b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Kon is a local-first, cognitive-load-aware dictation and task-capture desktop ap **Pre-alpha.** Actively dogfooded on Linux (KDE Plasma 6 on Wayland). macOS and Windows targets are in scope and exercised by CI, but not yet beta-ready. One primary user; open source-intent with licence TBD before public beta. - Current `main`: see commit log -- 136 automated lib tests across 10 crates, all passing +- 245 automated lib tests across 10 crates, all passing - Cross-platform CI (Linux / macOS / Windows) via GitHub Actions --- @@ -288,7 +288,7 @@ CI also builds release installers on tag push (see `.github/workflows/build.yml` ### Testing ```bash -cargo test --workspace --lib # 136 tests across 10 crates +cargo test --workspace --lib # 245 tests across 10 crates npm run check # svelte-check (type-checks .svelte files) cargo check --workspace --all-targets ``` diff --git a/crates/audio/src/capture.rs b/crates/audio/src/capture.rs index b45fccd..7fbbed2 100644 --- a/crates/audio/src/capture.rs +++ b/crates/audio/src/capture.rs @@ -277,11 +277,7 @@ fn device_display_name(device: &cpal::Device) -> Option { /// `pipewire` / `default` → `None` fn extract_card_id(name: &str) -> Option<&str> { let rest = name.split("CARD=").nth(1)?; - Some( - rest.split([',', ';']) - .next() - .unwrap_or(rest), - ) + Some(rest.split([',', ';']).next().unwrap_or(rest)) } /// Read `/proc/asound/cards` and return a map from ALSA card short name