Skip to content
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

small refactors and formatting #146

Merged
merged 4 commits into from
Feb 26, 2025
Merged

small refactors and formatting #146

merged 4 commits into from
Feb 26, 2025

Conversation

sfraczek
Copy link
Collaborator

I asked copilot if the match could be made cleaner and here is what is proposed.
It suggested that &'static str return type would just return a simple literal string instead of embedding cashline_string value into it so I changed return type to String.
I also asked for simplification of parse_incomes and I think it looks good.

return String and use format!() instead of returning static string
…to directly collect the results into a vector
@sfraczek sfraczek added the enhancement New feature or request label Feb 25, 2025
@sfraczek sfraczek requested a review from jczaja February 25, 2025 15:57
Copy link
Collaborator

@jczaja jczaja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks more elegant now. I have tested locally using various documents and all works fine. LGTM!

@jczaja jczaja merged commit c9fd23d into main Feb 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants