Skip to content

Refactor engine and metrics code for clarity and performance#9

Merged
ss-sonic merged 2 commits intomainfrom
refactor/clippy
Apr 22, 2025
Merged

Refactor engine and metrics code for clarity and performance#9
ss-sonic merged 2 commits intomainfrom
refactor/clippy

Conversation

@ss-sonic
Copy link
Owner

  • Update engine.rs to improve readability by using is_some() in stream processing loops.
  • Add #[must_use] attribute to new, with_event_channel_capacity, and with_action_channel_capacity methods for better API usage guidance.
  • Enhance error logging in the run method and ensure consistent formatting in error messages.
  • Implement default constructors for Metrics in both metrics.rs and metrics_stub.rs.
  • Adjust assertions in tests for clarity and consistency.

- Update `engine.rs` to improve readability by using `is_some()` in stream processing loops.
- Add `#[must_use]` attribute to `new`, `with_event_channel_capacity`, and `with_action_channel_capacity` methods for better API usage guidance.
- Enhance error logging in the `run` method and ensure consistent formatting in error messages.
- Implement default constructors for `Metrics` in both `metrics.rs` and `metrics_stub.rs`.
- Adjust assertions in tests for clarity and consistency.
- Remove deprecated `publish.yml` workflow and consolidate release steps into a new `release.yml` workflow.
- Update `pr_checks.yml` by removing the version check job to streamline CI processes.
- Introduce a new `release.yml` that handles version bumping, tagging, and publishing to crates.io using `cargo-release`.
@ss-sonic ss-sonic merged commit a66fc5d into main Apr 22, 2025
1 check 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