Skip to content

chore: enable clippy pedantic/nursery lints and fix warnings#116

Merged
JanZachmann merged 1 commit intoomnect:mainfrom
JanZachmann:clippy
Apr 7, 2026
Merged

chore: enable clippy pedantic/nursery lints and fix warnings#116
JanZachmann merged 1 commit intoomnect:mainfrom
JanZachmann:clippy

Conversation

@JanZachmann
Copy link
Copy Markdown
Contributor

@JanZachmann JanZachmann commented Apr 7, 2026

Summary

  • Enable clippy pedantic and nursery lint groups in workspace config with targeted suppressions for false positives
  • Fix ~85 actionable warnings: use_self, derive_partial_eq_without_eq, redundant_clone, cast_possible_truncation, cast_sign_loss, unnecessary_wraps, unnecessary_debug_formatting, match_same_arms, and more
  • Add cherry-picked restriction lint map_err_ignore to catch silently discarded error context
  • Add inline #[allow] annotations for Actix framework patterns (future_not_send, unused_async, needless_pass_by_value)
  • Bump version to 1.2.1

Reason

cargo clippy now runs with pedantic + nursery enabled, catching more issues at development time without noise from false positives. The workspace lint config provides a single source of truth for lint policy.

- Enable pedantic and nursery lint groups in workspace config
- Add cherry-picked restriction lint map_err_ignore
- Fix use_self, derive_partial_eq_without_eq, redundant_clone,
  unnecessary_struct_initialization, missing_const_for_fn across codebase
- Fix cast_possible_truncation, cast_sign_loss, unreadable_literal
- Fix unnecessary_wraps in config loaders, unnecessary_debug_formatting
  on Path types (use .display()), panic_in_result_fn in build.rs
- Replace single-use serde structs with serde_json::json!
- Combine duplicate match arms, add #[must_use] on builder methods
- Add inline #[allow] for Actix framework patterns (future_not_send,
  unused_async, needless_pass_by_value)
- Log session insertion errors instead of silently discarding
- Bump version to 1.2.1

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
@JanZachmann JanZachmann merged commit 053c83d into omnect:main Apr 7, 2026
3 checks passed
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