Skip to content

Desktop: fix the clippy 1.98 lints in menu.rs and vfs.rs - #1933

Closed
michielbdejong wants to merge 1 commit into
developfrom
claude/desktop-clippy-1916
Closed

michielbdejong wants to merge 1 commit into
developfrom
claude/desktop-clippy-1916

Conversation

@michielbdejong

Copy link
Copy Markdown
Contributor

Related Issues

closes #1916

cargo clippy -p atomic-server-tauri --all-targets -- -D warnings fails on develop (c2e2682) with clippy 1.98.1. The three errors are the same ones seen on the candidate line:

  • desktop/src/menu.rs: AboutMetadata is only used inside #[cfg(target_os = "macos")], so on Linux and Windows the import is unused. It's now imported under the same cfg.
  • desktop/src/vfs.rs:451: hash.to_hex().to_string() is passed where a &str is wanted. The hex string derefs to one, so &hash.to_hex() is enough.
  • desktop/src/vfs.rs:2173 (a bench test): mib as f64 casts an f64 to itself.

No behaviour change.

Checklist

  • Add changelog entry linking to issue, describe API changes: not added; it's a lint fix with no user-visible change.
  • Add or update tests if needed: none needed. Verified with cargo clippy -p atomic-server-tauri --all-targets -- -D warnings: 3 errors before, clean after, on Linux. The macOS-only path compiles the same as before, since only the import moved.
  • Update docs if needed: n/a.

🤖 Generated with Claude Code

https://claude.ai/code/session_011KbrNpTmoDhqsVVrSxb64R


Generated by Claude Code

`cargo clippy -p atomic-server-tauri --all-targets -- -D warnings` failed
on develop with clippy 1.98:

- menu.rs: `AboutMetadata` is only used on macOS, so the import is unused
  elsewhere. Import it under the same `cfg`.
- vfs.rs: `hash.to_hex().to_string()` where a `&str` is wanted; the hex
  string derefs to one.
- vfs.rs (bench test): `mib as f64` casts an `f64` to itself.

Closes #1916

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011KbrNpTmoDhqsVVrSxb64R
@joepio

joepio commented Sep 30, 2026

Copy link
Copy Markdown
Member

Trekmeester: included in batch #1915 (run 36779344325). It lands with it when green; if this PR's own tests fail there, I take it out and say why here.

@joepio

joepio commented Sep 30, 2026

Copy link
Copy Markdown
Member

Trekmeester: included in batch #1947 (run 36781515104; #1915 had been merged without it). It lands when that run is green; if this PR breaks something there, I take it out and say why here.

joepio added a commit that referenced this pull request Oct 1, 2026
… e2e traces, Android menus, demo tooling, docs (#1947)

Includes #1884, #1930, #1940, #1888, #1933, #1882, #1834, #1631, #1932, #1945 and the ForkBar part of #1530.

joepio commented Oct 1, 2026

Copy link
Copy Markdown
Member

Merged into develop through batch #1947 (squash 1f892aa); this head was verified as part of it. Closing.


Generated by Claude Code

@joepio joepio closed this Oct 1, 2026
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.

Workspace clippy fails on clippy 1.98 in desktop/src/menu.rs and desktop/src/vfs.rs

3 participants