Skip to content

Update to avoid frozen string warning#83

Merged
djberg96 merged 2 commits intomainfrom
frozen_string
Dec 6, 2025
Merged

Update to avoid frozen string warning#83
djberg96 merged 2 commits intomainfrom
frozen_string

Conversation

@djberg96
Copy link
Owner

@djberg96 djberg96 commented Dec 4, 2025

With Ruby 3.4. and later, I am seeing warning: literal string will be frozen in the future for a couple places where I'm providing human readable strings for mount properties.

This PR basically just replaces instances of << with += to avoid these warnings. As these are relatively short and simple strings, the effect should be negligible.

I've also updated the test task to run with warnings on by default.

@djberg96
Copy link
Owner Author

djberg96 commented Dec 4, 2025

@zeha or @aramprice, just looking for a quick check, how's it look?

Copy link

@aramprice aramprice left a comment

Choose a reason for hiding this comment

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

looks good to me, thanks for poking at this!

@djberg96 djberg96 merged commit e05f0ce into main Dec 6, 2025
23 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