Skip to content

chore: fix clippy pedantic and cargo warnings#19

Merged
excoffierleonard merged 1 commit into
mainfrom
chore/lint-advanced
Feb 3, 2026
Merged

chore: fix clippy pedantic and cargo warnings#19
excoffierleonard merged 1 commit into
mainfrom
chore/lint-advanced

Conversation

@excoffierleonard

Copy link
Copy Markdown
Owner
  • Add num-traits for safe f64 to u64 conversion
  • Replace boolean flags with bitfield struct in App
  • Add #[must_use] attributes to public functions
  • Simplify match arms with or-patterns (e.g., 'y' | 'Y')
  • Use try_from for integer casts instead of as
  • Replace map().unwrap_or() with map_or()
  • Use is_some_and() instead of map().unwrap_or(false)
  • Extract helper functions (push_kv_line, render_* methods)
  • Configure clippy lints in Cargo.toml (pedantic, cargo)
  • Allow multiple_crate_versions (transitive dependency issue)

  - Add num-traits for safe f64 to u64 conversion
  - Replace boolean flags with bitfield struct in App
  - Add #[must_use] attributes to public functions
  - Simplify match arms with or-patterns (e.g., 'y' | 'Y')
  - Use try_from for integer casts instead of as
  - Replace map().unwrap_or() with map_or()
  - Use is_some_and() instead of map().unwrap_or(false)
  - Extract helper functions (push_kv_line, render_* methods)
  - Configure clippy lints in Cargo.toml (pedantic, cargo)
  - Allow multiple_crate_versions (transitive dependency issue)
@excoffierleonard excoffierleonard merged commit f085ea6 into main Feb 3, 2026
3 checks passed
@excoffierleonard excoffierleonard deleted the chore/lint-advanced branch February 3, 2026 19:27
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