Skip to content

fix: Replace lossy casts with safer integer idioms#518

Open
jan-auer wants to merge 1 commit into
mainfrom
fix/cast-precision
Open

fix: Replace lossy casts with safer integer idioms#518
jan-auer wants to merge 1 commit into
mainfrom
fix/cast-precision

Conversation

@jan-auer

Copy link
Copy Markdown
Member

Replaces unchecked as casts and float round-trips with precise integer arithmetic and saturating conversions in four independent spots across the service and server crates.

@jan-auer jan-auer marked this pull request as ready for review June 24, 2026 16:16
@jan-auer jan-auer requested a review from a team as a code owner June 24, 2026 16:16
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.45%. Comparing base (2cc842a) to head (b5a998d).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #518      +/-   ##
==========================================
+ Coverage   87.40%   87.45%   +0.04%     
==========================================
  Files          86       86              
  Lines       13893    13897       +4     
==========================================
+ Hits        12143    12153      +10     
+ Misses       1750     1744       -6     
Components Coverage Δ
Rust Backend 92.32% <100.00%> (+0.04%) ⬆️
Rust Client 80.07% <ø> (+0.04%) ⬆️
Python Client 88.51% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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