-
Notifications
You must be signed in to change notification settings - Fork 12
Refactor long Rust functions #2664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Lionqueen94
wants to merge
12
commits into
main
Choose a base branch
from
2650-remove-allowclippytoo_many_lines-by-reducing-length-of-functions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Refactor long Rust functions #2664
Lionqueen94
wants to merge
12
commits into
main
from
2650-remove-allowclippytoo_many_lines-by-reducing-length-of-functions
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[allow(clippy::too_many_lines)] by reducing length of functions#[allow(clippy::too_many_lines)] by reducing length of functions
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2664 +/- ##
==========================================
+ Coverage 91.82% 91.89% +0.07%
==========================================
Files 376 376
Lines 18380 18492 +112
Branches 1711 1710 -1
==========================================
+ Hits 16877 16993 +116
+ Misses 1409 1406 -3
+ Partials 94 93 -1 ☔ View full report in Codecov by Sentry. |
…on_import function
…t of renamed get_files function
…rten candidates_from_abacus_election function
…ucing-length-of-functions
Contributor
Author
|
I'll make a new PR for improvements to the Edit: Done: #2665 |
#[allow(clippy::too_many_lines)] by reducing length of functions
praseodym
reviewed
Dec 29, 2025
praseodym
reviewed
Dec 29, 2025
…get_votes_table_columns function into impl
PDF Diff SummaryComparing against base branch:
|
praseodym
approved these changes
Dec 29, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2650
Tip: Review per commit!
Description
Functions improved (removed
#[allow(clippy::too_many_lines)]):src/committee_session/status.rs:change_committee_session_statuselection/api.rs:election_importeml/eml230.rs:candidates_from_abacus_electioninvestigation/api.rs:polling_station_investigation_updatepdf_gen/votes_table.rs: VotesTablenewreport/api.rs:into_pdf_file_modelsget_filessummary/mod.rs:from_resultstest_data_gen/generators.rs:create_test_electionFunctions improved (removed
#[allow(clippy::cognitive_complexity)]):src/pdf_gen/external.rs:generate_pdfs(also had#[allow(clippy::too_many_lines)]but this was not needed)report/api.rs:get_files13 instances of
#[allow(clippy::too_many_lines)]left in the codebase of which 3 related to generating test elections