Skip to content

Fix clippy warnings, add tests, and improve robustness#1

Open
kimrgrey wants to merge 5 commits intomainfrom
code-quality-fixes
Open

Fix clippy warnings, add tests, and improve robustness#1
kimrgrey wants to merge 5 commits intomainfrom
code-quality-fixes

Conversation

@kimrgrey
Copy link
Owner

@kimrgrey kimrgrey commented Feb 28, 2026

Summary

  • Collapse nested if/if let chains using Rust 2024 let chains, fixing all 15+ clippy collapsible_if errors
  • Run cargo fmt across all source files to fix formatting drift
  • Add warning output when shared field sync fails during profile switch (previously silently swallowed)
  • Preserve symlinks in copy_dir_recursive during backup/restore instead of following them
  • Add 12 integration tests using assert_cmd + predicates (version, help, subcommand validation, JSON error output)
  • Update CLAUDE.md: add missing update.rs to project structure, fix stale keyring crate reference

kimrgrey added 5 commits March 1, 2026 00:09
- Collapse nested if/if-let chains using Rust 2024 let chains (fixes 15+ clippy errors)
- Run cargo fmt across all source files
- Add warning output when shared field sync fails during profile switch
- Preserve symlinks in copy_dir_recursive during backup/restore
- Add 12 integration tests using assert_cmd + predicates
- Update CLAUDE.md: add update.rs, fix stale keyring reference
Use console::set_colors_enabled() to globally disable styling when
stdout is piped or redirected. Conditionally skip comfy_table .fg()
calls so table output is also clean.
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