Skip to content

fix: apply clippy suggestions across workspace#4415

Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1772756733-clippy-fixes-v2
Open

fix: apply clippy suggestions across workspace#4415
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin/1772756733-clippy-fixes-v2

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Mar 6, 2026

fix: apply clippy suggestions across workspace

Summary

Ran cargo clippy --fix and manually addressed remaining warnings for all crates compilable on Linux.

Auto-fixed (1 change):

  • crates/owhisper-client/src/adapter/cactus/batch.rs: Collapsed nested if let + if into a let-chain (clippy collapsible_if), then corrected indentation to satisfy dprint formatting

Manually suppressed (4 files):

  • crates/audio/src/async_ring.rs, crates/audio/src/rt_ring.rs: Added #[allow(dead_code)] on 4 unused pub(crate) items (did_pop_chunk, has_buffered_samples, convert_and_push_to_ringbuf, push_f32_to_ringbuf)
  • crates/transcribe-proxy/src/relay/builder.rs, handler.rs: Added #[allow(clippy::too_many_arguments)] on 4 functions with 8 params

Note: macOS-only crates (am2, tcc, notch, control-tauri, etc.) and cactus/tools (ARM build issues on x86) could not be checked on this Linux environment.

CI status: fmt and ci checks pass. batch and desktop_ci (linux-x86_64) fail due to pre-existing cactus-sys ARM cross-compilation issue (unrelated to this PR).

Review & Testing Checklist for Human

  • Verify the let-chain refactor in batch.rs (lines 305-312) is semantically equivalent to the original nested if let/if — this is the only logic change
  • Confirm the #[allow(dead_code)] items in audio crate are intentionally kept (e.g., for future use or platform-specific builds) rather than candidates for removal
  • Decide whether the too_many_arguments suppressions in transcribe-proxy are acceptable vs. warranting a config-struct refactor
  • Consider running cargo clippy on macOS to catch warnings in the excluded platform-specific crates

Notes

- Auto-fix: simplify iterator in owhisper-client batch adapter
- Suppress dead_code warnings for pub(crate) items in audio crate (async_ring, rt_ring)
- Suppress too_many_arguments warnings in transcribe-proxy relay (builder, handler)

Co-Authored-By: bot_apk <apk@cognition.ai>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit a1d49f5
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69aa22811859370008343168

@netlify
Copy link

netlify bot commented Mar 6, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit a1d49f5
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69aa22816bd5dd00080ea03f

Co-Authored-By: bot_apk <apk@cognition.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants