Skip to content

chore: fmt and clippy cleanup across all crates#4

Closed
adolfousier wants to merge 1 commit into
nashsu:mainfrom
adolfousier:chore/fmt-clippy
Closed

chore: fmt and clippy cleanup across all crates#4
adolfousier wants to merge 1 commit into
nashsu:mainfrom
adolfousier:chore/fmt-clippy

Conversation

@adolfousier
Copy link
Copy Markdown

@adolfousier adolfousier commented Mar 26, 2026

This PR is completely optional, purely mechanical lint fixes if you want, test it. Cheers

Summary

  • Run cargo fmt --all and fix all clippy --all-features -D warnings across every crate
  • Replace deprecated/verbose patterns (map_or, filter().next_back(), single-arm match) with idiomatic Rust (is_some_and, rfind, if let)
  • Add #[derive(Default)] with #[default] on enums (Strategy, ArgType, ScrollDirection)
  • Remove dead code: unused variables, unused imports
  • Simplify expressions: format!("{}", x)x.to_string(), .min().max().clamp(), needless borrows

Test plan

  • cargo fmt --all — no changes needed
  • cargo clippy --workspace --all-features -- -D warnings — zero warnings
  • No functional changes — purely mechanical lint fixes

Run cargo fmt --all and fix all clippy warnings:
- Replace map_or(false, ...) with is_some_and(...)
- Replace map_or(true, ...) with is_none_or(...)
- Replace filter().next_back() with rfind()
- Replace match with single arm to if let
- Add #[derive(Default)] with #[default] on enums
- Remove dead code (unused variables, unused imports)
- Simplify format!("{}", x) to x.to_string()
- Replace .clamp() for min/max chains
- Fix needless borrows and other minor lints
RickSanchez88E pushed a commit to RickSanchez88E/AutoCLI that referenced this pull request May 16, 2026
Free Cloudflare zones get Universal SSL covering only <zone> + one-level
*.<zone>. Two-level subdomains like vnc.autocli.<zone> handshake-fail
('Unauthorized' / sslv3 alert) until the operator upgrades to Pro,
Total TLS, or ACM.

Rename across SPEC / PLAN / README:
  vnc.autocli.<zone>     -> autocli-vnc.<zone>
  cdp.autocli.<zone>     -> autocli-cdp.<zone>
  api.autocli.<zone>     -> autocli-api.<zone>
  grafana.autocli.<zone> -> autocli-grafana.<zone>

§9 risk nashsu#4 now documents the Free-plan SSL constraint as the reason for
the flat naming.
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.

1 participant