Skip to content

Comments

fix: apply cargo clippy fixes#4167

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1771804972-clippy-fixes
Open

fix: apply cargo clippy fixes#4167
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1771804972-clippy-fixes

Conversation

@devin-ai-integration
Copy link
Contributor

fix: apply cargo clippy auto-fixes across workspace

Summary

Ran cargo clippy --fix and cargo clippy across the workspace to resolve all auto-fixable clippy warnings. Changes are purely mechanical/cosmetic with no behavioral changes:

  • Remove unused import: use tauri::Manager in desktop/src-tauri/src/lib.rs
  • Remove redundant conversion: &distinct_id.to_string()distinct_id (already a &str)
  • Collapse nested if-let into let-chains: Several instances across tiptap, fs-db, and listener where nested if/if let blocks are flattened using Rust's let-chain syntax (if cond && let ... && ...)
  • Remove unnecessary lifetime annotations: group_by_session_id<'a, T, F>group_by_session_id<T, F> in two migration files (elision handles it)
  • Exclude plugins/cli2 from workspace: This directory only contains node_modules with no Cargo.toml, causing workspace resolution failures

Note: Several packages (tools, control-tauri, notch, am2, tcc, notification-macos) could not be checked because they depend on macOS-only system libraries (swift_rs, libspa, tauri-nspanel) unavailable on Linux.

Review & Testing Checklist for Human

  • Verify let-chain formatting: The auto-fixer produced unusual indentation on the collapsed let-chains (e.g., from_ast.rs, macro.rs). Confirm the style is acceptable or run cargo fmt to normalize.
  • Verify let-chain semantics in from_ast.rs: The unescape_markdown function's control flow is correct after collapsing — the result.push(c) fallthrough and continue behavior should be identical to the original nested version.
  • Confirm plugins/cli2 exclusion is intentional: The directory has no Cargo.toml (removed in commit 9a079475b). Adding it to exclude fixes workspace resolution; verify this is the desired fix vs. removing the directory entirely.

Notes

- Remove unused import (tauri::Manager)
- Remove unnecessary reference conversion (&distinct_id.to_string() -> distinct_id)
- Collapse nested if-let chains into combined let-chains
- Remove unnecessary lifetime annotations
- Exclude plugins/cli2 from workspace (missing Cargo.toml)

Co-Authored-By: unknown <>
@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 Feb 23, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 986a6fb
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/699b9c28da533f0008f99926
😎 Deploy Preview https://deploy-preview-4167--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 23, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 986a6fb
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/699b9c2857709d0008f907d2
😎 Deploy Preview https://deploy-preview-4167--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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