Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Nov 28, 2024

Encoding this calculation in a struct does not seems to have much value since the calculation is only performed in the publish endpoint. Inlining the struct reduces unnecessary complexity and save a couple of lines :)

A higher value isn't possible anyway due to the way the publish endpoint was designed...
This is only used in the publish endpoint, and can apparently be written quite a bit more concise... :D
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Nov 28, 2024
@Turbo87 Turbo87 enabled auto-merge November 28, 2024 09:29
@Turbo87 Turbo87 merged commit a27a914 into rust-lang:main Nov 28, 2024
8 checks passed
@Turbo87 Turbo87 deleted the maximums branch November 28, 2024 09:42
@codecov
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.48%. Comparing base (99aed5b) to head (9fdeaa6).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10096      +/-   ##
==========================================
- Coverage   89.48%   89.48%   -0.01%     
==========================================
  Files         295      294       -1     
  Lines       31265    31256       -9     
==========================================
- Hits        27977    27968       -9     
  Misses       3288     3288              

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant