Skip to content

refactor: Use write_padded_string() in a couple additional places (Part 2/X)#100

Merged
Byron merged 1 commit intoByron:mainfrom
ConnorGray:connorgray/refactor-2
Feb 19, 2025
Merged

refactor: Use write_padded_string() in a couple additional places (Part 2/X)#100
Byron merged 1 commit intoByron:mainfrom
ConnorGray:connorgray/refactor-2

Conversation

@ConnorGray
Copy link
Contributor

@ConnorGray ConnorGray commented Feb 18, 2025

This is a follow-up to #98, that uses the write_padded_string() helper in a handful of places I missed in that PR.

Additionally, while in the neighhborhood, add pub(crate) to the other text_modifications.rs private helpers,
as we discussed yesterday 🙂. These being marked as pub is misleading since the text_modifications module is
not actually externally public, and these functions are never re-exported publicly.


Because you said:

Thanks for offering. If you happen to keep contributing something else you could U-Boot that, but no need for a PR just for that.

I tucked the pub(crate) change into this PR instead of making a dedicated PR just for that small change. I am hoping to keep contributing 🙂, and as the Part 2/X in the title might suggest, I've got a couple of small changes queued up :).

I'll try to balance keeping each individual change as small as possible (to make review feel easy and able to fit into whatever time you might have available), will avoiding PRs that are so small that the overhead of reviewing them and merging doesn't feel worth while. As a maintainer myself over at modular/mojo, I know the pain of reviewing over-large PRs.

But I'm happy to adjust to whatever size/style works best for you. Please don't hesitate to suggest any changes to how I'm hoping to contribute here; my goal is to make it as smooth as possible for the maintainers to review my work here🙂

Additionally, while in the neighhborhood, add `pub(crate)` to the other
text_modifications.rs private helpers

These being marked as `pub` is misleading since the `text_modifications`
module is not actually externally public, and these functions
are never re-exported publicly.
Copy link
Owner

@Byron Byron left a comment

Choose a reason for hiding this comment

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

Thanks again for this incredibly mindful PR, it's great to have you here!

I now also realise your involvement in Mojo and just have to say: cool stuff and incredible work!

@Byron Byron merged commit 29c8c20 into Byron:main Feb 19, 2025
2 checks 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.

2 participants